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

Problem on Scale Breaks(it is not appearing)

1 Answer 50 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
chandra
Top achievements
Rank 1
chandra asked on 05 Jun 2008, 07:07 AM
hi,

I am drawing the Line chart with ShortDate on X-axis, number format of Y-axis(From 0 to 120).

I want to draw only one scale break line at 25 on Y-axis.

I already set the Enabled - true, autoscale of Y-axis false.
but the scalebreak is not appearing.

Plz give some sample code about this one.


Thanks and Regards,
chandra

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 06 Jun 2008, 06:10 AM
Hello chandra,

Here is a sample code:
this.radChart1.PlotArea.YAxis.AutoScale = false
this.radChart1.PlotArea.YAxis.ScaleBreaks.Enabled = true
 
AxisSegment segment1 = new AxisSegment(); 
segment1.MinValue = 0; 
segment1.MaxValue = 20; 
segment1.Step = 5; 
 
AxisSegment segment2 = new AxisSegment(); 
segment2.MinValue = 40; 
segment2.MaxValue = 60; 
segment2.Step = 5; 
 
AxisSegment segment3 = new AxisSegment(); 
segment3.MinValue = 80; 
segment3.MaxValue = 100; 
segment3.Step = 5; 
 
this.radChart1.PlotArea.YAxis.ScaleBreaks.Segments.AddRange( 
    new AxisSegment[] { segment1, segment2, segment3 } 
    ); 
In this example three segments are defined and a scale break between each of them is created.

Hope that helps.

Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (obsolete as of Q1 2013)
Asked by
chandra
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or