Label Position And multiline

3 posts, 0 answers
  1. Jacky
    Jacky avatar
    23 posts
    Member since:
    Mar 2014

    Posted 15 Aug 2014 Link to this post

    hi guys,

    thanks for your help in advance.

    I have two questions as below.
    1.  refer to the picture,  I want the label was shown on the top of bar if it is positive,  but on the bottom of bar if negative,  how to implement?
    2. how to make the label of X-axis was shown in multiline if it has too many characters?   on the picture I mean the label with text "May 2012' 
  2. Jacky
    Jacky avatar
    23 posts
    Member since:
    Mar 2014

    Posted 15 Aug 2014 Link to this post

    ideally,  could we show a tooptip on X-axis label ( on text 'May 2012') ?
  3. DevCraft R3 2016 release webinar banner
  4. Dess
    Dess avatar
    1559 posts

    Posted 19 Aug 2014 Link to this post

    Hello Jacky,

    Thank you for writing.

    It is not possible to specify the position of the labels for negative values in order to display them at the bottom. However, you can use the LabelFormatting event and manipulate the BarLabelElement.PositionOffset on a way to display the text below the element or just format them in different color.

    When you have a lot of labels on the X-axis, they can overlap each other. You can modify the CategoricalAxis.LabelFitMode property and set it to MultiLine or Rotate. Thus, the label overlapping should be avoided.

    As to the last question, related to tooltips for X-axis labels, currently the RadChartView provides a tooltip interactivity with the ChartTooltipController class and can be used to visualize arbitrary information related to a data point only.

    I hope this information helps. Should you have further questions, I would be glad to help.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top