Just one Label in a Series |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 666 |
Post Options
Thanks(1)
Posted: 21 March 2011 at 9:33am |
Can I add a label to just one point in a series. If I have 1000 points it would be nice to be able to select the points to have labels on, otherwise the graph gets overcrowded by labels.
-cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
With ActiveX version we are able to assign value to Point.LabelText.
Seems a space doesn't draw label.
So, curPoint.LabelText = IIf((i Mod 10), <Your value>, " ") would assign a labeltext to every tenth point.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 666 |
Post Options
Thanks(0)
|
Hmmm, when I add a point I use SetLabelText to set it to _T("") or NULL, but in both cases it shows the values of all the point. And pStyle->GetLabel()->SetVisible(TRUE);
Is this possible at all? Other graph controls have custom labels, that you can add and attach to e.g. data points, axes etc., is that possible with this graph?
-cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
Algae
Senior Member Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
Post Options
Thanks(0)
|
You've probably already resolved this but according to the CJ source if there is no string for the label it defaults to the value of the point.
You could try setting a non-printable character in SetLabelText. Since it's just a text field the label can accept any formatted CString. As long as there is a non-empty string it will override the label value default. |
|
Arnoutdv
Groupie Joined: 29 September 2010 Status: Offline Points: 38 |
Post Options
Thanks(0)
|
A single space character as LabelText works for me
|
|
VB6 SP6, SuitePro 16.3.0 / 18.2.0, Win10/64
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |