Print Page | Close Window

Just one Label in a Series

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18088
Printed Date: 25 April 2024 at 3:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Just one Label in a Series
Posted By: cpede
Subject: Just one Label in a Series
Date 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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: Aaron
Date Posted: 21 March 2011 at 10:02am
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....


Posted By: cpede
Date Posted: 22 March 2011 at 5:31am
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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: Algae
Date Posted: 30 November 2014 at 6:20pm
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.


Posted By: Arnoutdv
Date Posted: 16 December 2014 at 9:08am
A single space character as LabelText works for me

-------------
VB6 SP6, SuitePro 16.3.0 / 18.2.0, Win10/64



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net