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

Series clipped by the chartArea

1 Answer 40 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anne Lyon
Top achievements
Rank 1
Anne Lyon asked on 20 May 2011, 09:28 AM
Hi,
Is there a way to avoid series lines and point markers getting clipped by the chart area? See attached screenshot. As my graphs go from 0 - 100 % I don't want the y-range to be more than 100% and if I set yMax to 100 then all points with value = 100 get clipped to only display bottom half. Can the chartArea be "brought to top" in any way?

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 25 May 2011, 12:23 PM
Hi Anne Lyon,
Unfortunately, there is no simple way to work around this. The only suggestions that I can provide are the following:
  1. Use a slightly larger value for the MaxValue property, so that no additional ticks are drown on the y-axis, but that allows for the data points with value 100 to be fully displayed:
    RadChart1.DefaultView.ChartArea.AxisY.AutoRange = false;
    RadChart1.DefaultView.ChartArea.AxisY.Step = 10;
    RadChart1.DefaultView.ChartArea.AxisY.MinValue = 0;
    RadChart1.DefaultView.ChartArea.AxisY.MaxValue = 101;
  2. Use one of the expended modes of the y-axis:
    RadChart1.DefaultView.ChartArea.AxisY.AutoRange = false;
    RadChart1.DefaultView.ChartArea.AxisY.Step = 10;
    RadChart1.DefaultView.ChartArea.AxisY.MinValue = 0;
    RadChart1.DefaultView.ChartArea.AxisY.MaxValue = 100;
    RadChart1.DefaultView.ChartArea.AxisY.ExtendDirection = AxisExtendDirection.Up;

Greetings,
Tsvetie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Anne Lyon
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or