Jump to content
Software FX Community

custom labels in XY chart


User (Legacy)

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...