Combining ShowLabels and ClipToPlotArea

2 posts, 1 answers
  1. Jason D
    Jason D avatar
    130 posts
    Member since:
    Jan 2011

    Posted 29 Jun Link to this post

    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?
  2. Answer
    Martin Ivanov
    Admin
    Martin Ivanov avatar
    2445 posts

    Posted 02 Jul Link to this post

    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.
Back to Top