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

Scale Breaks documentation

2 Answers 67 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Paul Taormino
Top achievements
Rank 1
Paul Taormino asked on 08 Dec 2008, 07:40 PM

I would like to see some documentation on the use of Scale Breaks for the Y-Axis.  I am configuring the Y-Axis for a Line chart as such:

chart.PlotArea.YAxis.ScaleBreaks.Enabled = true;
chart.PlotArea.YAxis.ScaleBreaks.MaxCount = 1;
chart.PlotArea.YAxis.AutoScale = true;

What I expect to happen here is to end up with two chart.PlotArea.YAxis.Segments, each with an automatic and appropriately set Step. MinValue, and MaxValue.   But what I end up with is two segments: The lower segment which contains most of the YAxis values, consumes about 95% of the chart space, and uses a very low "Step" value, which results in hundreds of gridlines so close together that the plotted series lines can scarcely be seen.   The upper segment which contains one or two "outlying" data points, is squeezed up to the top 30 or so pixels of the chart.    The bottom line is that this chart is essentially unreadable.

So my questions are:

1. Is there a way to set up the chart so that the Step, MinValue, and MaxValue are set automatically, separately and appropriately for each segment?
2. If not, is it necessary to manually create each segment and set Step, MinValue, and MaxValue explicitly?   This option would be highly undesirable, since we're charting a large variety of measures which have a wide variety of Min and Max values.   We would like to avoid having to write the algorithm that automatically creates these segments .... our assumption was that this was built into the controls..

In any case, if you can provide some samples of the use of the ScaleBreaks feature, particularly with regard to autoformatting on the YAxis, that would be very helpful.

2 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 11 Dec 2008, 05:27 PM
Hi Paul Taormino,

Can you please post a screenshot of the resulting chart so we can get a better idea of the problem. Also, if possible can you provide a simple application which reproduces the problem? This will greatly help our developers with the investigation of the issues you are reporting.

Regards,
Vladimir Milev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 2
answered on 09 Apr 2009, 08:27 PM
I had the same issue, and had to turn off scale breaks to get the auto scaling working.  I would be interested if there was a work-around.
Tags
Chart (Obsolete)
Asked by
Paul Taormino
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Michael
Top achievements
Rank 2
Share this question
or