RadChartView clipping

6 posts, 1 answers
  1. Nova
    Nova avatar
    7 posts
    Member since:
    Apr 2007

    Posted 10 Apr 2012 Link to this post

    Hi!

    I am using
    your excellent control RadCartesianChart. Tell me how to avoid clipping the last points (at top and right). Option ClipToBounds = False somehow not working in my case (LineSeries with custom PointTemplate - Ellipse 6x6). If so, please send test solution with example. Also, for points that are cut not appear tooltip, but it is probably related to the previous problem.
  2. Sia
    Admin
    Sia avatar
    667 posts

    Posted 13 Apr 2012 Link to this post

    Hello Aleksey,

    I suppose that you are using linear X axis and you have set the RangeExtendDirection property to be None. What I can suggest is to set it to be Positive for example. Another solution is to use CategoricalAxis as shown in this example and play with the PlotMode property.
    Please let me know if one of these works for your scenario.

    Kind regards,
    Sia
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Nova
    Nova avatar
    7 posts
    Member since:
    Apr 2007

    Posted 13 Apr 2012 Link to this post

    Hi, Sia
    To make it clearer, I have attached screenshot of my problem. As you can see, I use LinearAxis for vertical and Categorical Axis for horizontal. RangeExtendDirection has a default value (Negative | Positive). Of course, I can use PlotMode, but I do not like (categories have numerical values​​, so they better align to ticks, not to intervals). Moreover, it does not solve the problem of cutting the upper points (vertical axis is Linear).

    Is it possible to calculate the size of PlotArea with taking into account the PointTemplate? Or set axis range manually?
  5. Answer
    Ves
    Admin
    Ves avatar
    2879 posts

    Posted 18 Apr 2012 Link to this post

    Hi,

    Please, set the PlotMode property to OnTicksPadded:

    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis PlotMode="OnTicksPadded"></telerik:CategoricalAxis>
    </telerik:RadCartesianChart.HorizontalAxis>

     This will preserve the ticks-aligned labels, but it will ensure a certain padding is added in both ends of the axis, allowing the points to be displayed correctly. For the linear axis -- you can configure a manual range by just assigning values to Minimum and/or Maximum and/or MajorStep properties. You can only assign a value to some of them, leaving the rest auto-calculated.

    Best regards,
    Ves
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Heath Morris
    Heath Morris avatar
    4 posts
    Member since:
    Sep 2009

    Posted 23 Apr 2013 Link to this post

    That works great for a horizontal Axis, but what about the vertical Axis? I am encountering this clipping for a vertical linear axis and a categorical horizontal axis. I Would like my values to include the maximum and minimum values and nothing more yet still be visible in the chart with a label that is not clipped.
  7. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 26 Apr 2013 Link to this post

    Hi Heath,

    You can set the ClipToPlotArea property of the LineSeries to false, so that the labels are not clipped by the plot area bounds.

    Best regards,
    Ves
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner