User (Legacy) Posted December 20, 2005 Author Report Share Posted December 20, 2005 Is there a simple way to do the following? chart.PointLabels = TRUE; if (pointValue <= 0) pointLabel = "Data Not Monitored"; else pointLabel = "SomeDataString"; I can see in the PointAttribute object where I can set the Text color,alignment and such, but not the Text itself. Thanks, Chris Link to comment Share on other sites More sharing options...
User (Legacy) Posted December 20, 2005 Report Share Posted December 20, 2005 Is there a simple way to do the following? chart.PointLabels = TRUE; if (pointValue <= 0) pointLabel = "Data Not Monitored"; else pointLabel = "SomeDataString"; I can see in the PointAttribute object where I can set the Text color,alignment and such, but not the Text itself. Thanks, Chris Link to comment Share on other sites More sharing options...
Software FX Posted December 22, 2005 Report Share Posted December 22, 2005 The Tag property if what will allow you to achieve what you are looking for: set: chart.PointLabels = TRUE; if (pointValue <= 0) pointLabel = "Data Not Monitored"; else pointLabel = "SomeDataString"; chart.Point(i,j).Tag = pointLabel; Then, to display the tag in the point label use the PointLabelMaskProperty as follows: chart.PointLabelMask = "%L"; You can also achieve this using Conditional Attributes, please refer to the documentation for more information. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Software FX Posted December 22, 2005 Report Share Posted December 22, 2005 The Tag property if what will allow you to achieve what you are looking for: set: chart.PointLabels = TRUE; if (pointValue <= 0) pointLabel = "Data Not Monitored"; else pointLabel = "SomeDataString"; chart.Point(i,j).Tag = pointLabel; Then, to display the tag in the point label use the PointLabelMaskProperty as follows: chart.PointLabelMask = "%L"; You can also achieve this using Conditional Attributes, please refer to the documentation for more information. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.