How to show the x value in the labels?

2 posts, 1 answers
  1. Robert
    Robert avatar
    23 posts
    Member since:
    Jun 2012

    Posted 11 Jul 2012 Link to this post

    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!
  2. Answer
    Rosko avatar
    137 posts

    Posted 13 Jul 2012 Link to this post

    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,
    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
Back to Top