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

RadChartView clipping

5 Answers 185 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Nova
Top achievements
Rank 1
Nova asked on 10 Apr 2012, 03:36 PM
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.

5 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 13 Apr 2012, 11:16 AM
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 >>

0
Nova
Top achievements
Rank 1
answered on 13 Apr 2012, 11:55 AM
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?
0
Accepted
Ves
Telerik team
answered on 18 Apr 2012, 09:23 AM
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 >>

0
Heath Morris
Top achievements
Rank 2
answered on 23 Apr 2013, 09:37 PM
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.
0
Ves
Telerik team
answered on 26 Apr 2013, 11:43 AM
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.

Tags
ChartView
Asked by
Nova
Top achievements
Rank 1
Answers by
Sia
Telerik team
Nova
Top achievements
Rank 1
Ves
Telerik team
Heath Morris
Top achievements
Rank 2
Share this question
or