User (Legacy) Posted June 9, 2005 Report Share Posted June 9, 2005 Hi, Is there any way (besides using events) to set custom data point labels in an XY chart? I currently use the Legend property to do this for all other chart types, but with scatter it just gives you wierd results. Thanks, Steve. Link to comment Share on other sites More sharing options...
Software FX Posted June 10, 2005 Report Share Posted June 10, 2005 Well you can use the legend property but you need to tell Chart FX how to match the label index with an actual value in the X-Axis. In a non-X/Y chart (categorical X-Axis) the X-Axis is always 1,2,3..., so ,matching the values with the label index is straight forward: 1 --> Label[0] 2 --> Label[1] 3 --> Label[2] ... When you have a full blown axis the equivalence is not direct, your axis may go from say 0 to 10 and have labels every 0.5. The LabelValue property is used for this purpose, LabelValue contains the factor to go from an axis unit to a label index, in a categorical chart, LabelValue is 1, in the case of 0 to 10 with labels at every 0.5, this value is 0.5. For more details please refer to the documentation on LabelValue. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 12, 2005 Author Report Share Posted June 12, 2005 SoftwareFX Support wrote: > Well you can use the legend property but you need to tell Chart FX how to > match the label index with an actual value in the X-Axis. > > In a non-X/Y chart (categorical X-Axis) the X-Axis is always 1,2,3..., so > ,matching the values with the label index is straight forward: > > 1 --> Label[0] > 2 --> Label[1] > 3 --> Label[2] > ... > > When you have a full blown axis the equivalence is not direct, your axis may > go from say 0 to 10 and have labels every 0.5. The LabelValue property is > used for this purpose, LabelValue contains the factor to go from an axis > unit to a label index, in a categorical chart, LabelValue is 1, in the case > of 0 to 10 with labels at every 0.5, this value is 0.5. > > For more details please refer to the documentation on LabelValue. > > Thanks, but its not quite what I'm looking for. I want to get a label to appear next to the data point, not actually in the axis. IE. the same result as would happen if I implemented the GetPointLabel event. Link to comment Share on other sites More sharing options...
Software FX Posted June 13, 2005 Report Share Posted June 13, 2005 Oh, I see, you want to associate a string label to each point. This is not supported in version 5. Per-Point attributes is a new feature in Chart FX 6 and allows you among other things to associate a tag to a point and use it in the PointLabel. The GetPointLabel event is your only option. -- 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.