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

Value Labels clipping on Cartesian Chart

2 Answers 153 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jones
Top achievements
Rank 1
Jones asked on 02 Jun 2017, 01:34 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 06 Jun 2017, 11:29 AM
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 you to write beautiful native mobile apps using a single shared C# codebase.
0
Jones
Top achievements
Rank 1
answered on 06 Jun 2017, 01:20 PM

Hi Dinko,

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

Tags
Chart
Asked by
Jones
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Jones
Top achievements
Rank 1
Share this question
or