Problem on Scale Breaks(it is not appearing)

2 posts, 0 answers
  1. chandra
    chandra avatar
    21 posts
    Member since:
    Apr 2008

    Posted 05 Jun 2008 Link to this post

    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
  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 06 Jun 2008 Link to this post

    Hello chandra,

    Here is a sample code:
    1 this.radChart1.PlotArea.YAxis.AutoScale = false
    2 this.radChart1.PlotArea.YAxis.ScaleBreaks.Enabled = true
    3  
    4 AxisSegment segment1 = new AxisSegment(); 
    5 segment1.MinValue = 0; 
    6 segment1.MaxValue = 20; 
    7 segment1.Step = 5; 
    8  
    9 AxisSegment segment2 = new AxisSegment(); 
    10 segment2.MinValue = 40; 
    11 segment2.MaxValue = 60; 
    12 segment2.Step = 5; 
    13  
    14 AxisSegment segment3 = new AxisSegment(); 
    15 segment3.MinValue = 80; 
    16 segment3.MaxValue = 100; 
    17 segment3.Step = 5; 
    18  
    19 this.radChart1.PlotArea.YAxis.ScaleBreaks.Segments.AddRange( 
    20     new AxisSegment[] { segment1, segment2, segment3 } 
    21     ); 
    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top