Jump to content
Software FX Community

custom labels in XY chart


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...