This is a migrated thread and some comments may be shown as answers.

How to show the x value in the labels?

1 Answer 46 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 11 Jul 2012, 07:01 AM
I was wondering if it is possible to show the x values in the item labels, in a LineSeries e.g.? When there are about 50 datapoints per series visible on a chart with its x-axis set to DateTime, it's hard to see the corresponding time. Sampling helps a lot, but nevertheless I would like to show x and y values in the labels.

Besides that: is there a way to show the labels only when hovering over them? Like a tooltip, but with a label that shows up instantly when moving the mouse over it?

Thanks for your help!
Regards,
Robert

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosko
Telerik team
answered on 13 Jul 2012, 08:42 AM
Hi Robert,

I need to tell you that, If sampling is active, the value which is to be seen in the ItemLabel is the one of the drawn sample and there is no way to see the corresponding actual values, unless you zoom in. You can set the content of the labels through the ItemLabelFormat property using Format Expressions.
radChart.SeriesMappings[0].SeriesDefinition.ItemLabelFormat = "#X, #Y";

RadChart has also a tooltip feature. You can read the online documentation on the topic. It explains how to enable the feature and customize it.

All the best,
Rosko
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Robert
Top achievements
Rank 1
Answers by
Rosko
Telerik team
Share this question
or