Is it possible to set the pointer style to use a number or a letter instead of a shape?
Our users have the desire to be able to use not just shapes but letters and/or numbers to mark the series the way pointer styles are used in TeeChart.
I looked into doing this using Marks instead of Pointer by assigning text to the mark and trying to place it on the line with no image behind the text. I have not yet been successful with these attempts and thought I would ask to see if there was a way to do this with the Pointer instead.
Any suggestion that you might have would be helpful.
Whether that is a way to do it using series Pointer or Marks should not make much difference to me. I just thought that Pointer would be the best way to try to do it in case we do decide to use Marks for data display later.
Thanks.
Using Letters or Numbers for Pointer Style?
-
- Newbie
- Posts: 20
- Joined: Fri May 26, 2006 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Aaron,
Yes, this is possible creating a custom series as shown on this topic. You just need to comment g.Draw line and uncomment g.TextOut line to draw numbers or text instead of an image.
Yes, this is possible creating a custom series as shown on this topic. You just need to comment g.Draw line and uncomment g.TextOut line to draw numbers or text instead of an image.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 20
- Joined: Fri May 26, 2006 12:00 am
Once again, thank you for the quick response.
I have implemented what you suggested and it is so very close to exactly what I need.
However, the combination of things that I am trying to achieve may not work.
The one thing that this new class does not get me is the line between my points. The letters are drawing in place of the symbols exactly as I want them to but the line between the points is not being drawn.
What we are looking for is a series type that lets me draw the line and the pointer symbol (including allowing the letters for the symbols) and allow both to be turned on and off independently (sometimes we want just a line, sometimes we want just points, sometimes we want a line WITH points).
I had been using the Line class since it seemed to be allowing everything that I had attempted up to this point. It allows me to do the line, the symbols and to turn both on or off. It also gives me the Stairs property setting that we must have.
Using the Line class also worked fine with the GetPointerStyle event handler code that you posted in response to my symbol DrawEvery question that I posted yesterday.
The new class that uses CustomPoint as a base class does not appear to give me the Stairs property (which is pretty critical to the plotting we need to do) and is not drawing the line between the points. I assume this is because it is not using the Line class as its base class but I could be wrong.
I am still working on this trial code to see if I can find a way to do all of the different combinations of properties that we need to have for the series in our plots.
I'm not sure if all of that makes sense.
Let me know if what we are trying to do is not clear or not possible if you can.
I would be happy to provide more details about what we are trying to do if I need to clarify anything for you.
Thanks again for your help.
I have implemented what you suggested and it is so very close to exactly what I need.
However, the combination of things that I am trying to achieve may not work.
The one thing that this new class does not get me is the line between my points. The letters are drawing in place of the symbols exactly as I want them to but the line between the points is not being drawn.
What we are looking for is a series type that lets me draw the line and the pointer symbol (including allowing the letters for the symbols) and allow both to be turned on and off independently (sometimes we want just a line, sometimes we want just points, sometimes we want a line WITH points).
I had been using the Line class since it seemed to be allowing everything that I had attempted up to this point. It allows me to do the line, the symbols and to turn both on or off. It also gives me the Stairs property setting that we must have.
Using the Line class also worked fine with the GetPointerStyle event handler code that you posted in response to my symbol DrawEvery question that I posted yesterday.
The new class that uses CustomPoint as a base class does not appear to give me the Stairs property (which is pretty critical to the plotting we need to do) and is not drawing the line between the points. I assume this is because it is not using the Line class as its base class but I could be wrong.
I am still working on this trial code to see if I can find a way to do all of the different combinations of properties that we need to have for the series in our plots.
I'm not sure if all of that makes sense.
Let me know if what we are trying to do is not clear or not possible if you can.
I would be happy to provide more details about what we are trying to do if I need to clarify anything for you.
Thanks again for your help.
-
- Newbie
- Posts: 20
- Joined: Fri May 26, 2006 12:00 am
Almost immediately after posting my last reply, I went back and changed a few things and appear to have gotten this to work as I was hoping it would.
My new class is now using Line as its base class (which I had tried before but did not completely work) and is allowing the base class's DrawValue to be called when before drawing the letter at the points. I think this is the piece I was missing before.
Thanks again for the help you provided.
My new class is now using Line as its base class (which I had tried before but did not completely work) and is allowing the base class's DrawValue to be called when before drawing the letter at the points. I think this is the piece I was missing before.
Thanks again for the help you provided.