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

Combining ShowLabels and ClipToPlotArea

1 Answer 150 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jason D
Top achievements
Rank 1
Veteran
Jason D asked on 29 Jun 2020, 04:37 PM
I'm showing two charts that are stacked vertically and have the same x-axis values. So I set ShowLabels to False for the top chart. However, now the points do not extend beyond the PlotArea on the right side even with ClipToPlotArea set to False. I have tried all sorts of margin and padding settings but I have not been able to add any extra space between the PlotArea and the right edge of the Chart. Suggestions?

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 02 Jul 2020, 01:09 PM

Hello Jason,

The ClipToPlotArea property determines if the series elements should be clipped within the plot area of the chart. In your case, the data point visual is going outside of the RadCartesianChart control itself. To avoid the clipping in this case, set the ClipToBounds property of the RadCartesianChart control to False. Also, you can add a small Margin to the chart, in order to ensure that there is enough space around the chart.

 <telerik:RadCartesianChart ClipToBounds="False" Margin="10">

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
ChartView
Asked by
Jason D
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Share this question
or