Value Labels clipping on Cartesian Chart

3 posts, 1 answers
  1. Jones
    Jones avatar
    5 posts
    Member since:
    May 2017

    Posted 02 Jun Link to this post

    Hi all,

    i have a RadCartesianChart of BarSeries and have a problem with the value labels, the highest label is clipped on the edge of chart. I can't set ClipToPlotArea to false because i need clip in horizontal axis, my question is, i can manipulate the distance between value label and the bar top? If i can do it, how i do it. 

    Thanks.

     

     

  2. Answer
    Dinko
    Admin
    Dinko avatar
    416 posts

    Posted 06 Jun Link to this post

    Hi Jones,

    Thank you for contacting us.

    The control doesn't provide functionalities which allow you to control the space between the label and the top of the bar. You can try one of the following approaches which could work for your case.
    • You can remove the Maximum property of the vertical axis.
    • You can use smart label strategy. This strategy is designed to improve the readability of the labels. Once enabled, the labels will be rearranged so that each label is clearly visible. You can read more about this strategy in the Smart Labels help article in our documentation.
    • You can specify custom ChartSeriesLabelDefinition and set it to the LabelDefinitions property of the BarSeries. This way you can change the position of the labels. For example in the center of the bars. For further information, you can take a look at the Label Definition help article.
    • You can still reconsider setting the ClipToPlotArea of the BarSeries to false.

    Hope this information is helpful.

    Regards,
    Dinko
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Jones
    Jones avatar
    5 posts
    Member since:
    May 2017

    Posted 06 Jun in reply to Dinko Link to this post

    Hi Dinko,

    I have used the Maximum value to make a limit of 115 in this Chart and it worked perfeclit to me.

Back to Top