Autoscale property

Thread is closed for posting
6 posts, 1 answers
  1. Marko Gluhak
    Marko Gluhak avatar
    68 posts
    Member since:
    Apr 2006

    Posted 15 Nov 2011 Link to this post

    Hi,

    is it possible with no programming side (code behind) set something like set maxvalue to minimaly 10% above maximum in steps of ....

    For examle I have value 1197 and when I set autoscale chart is displaying to 1200 and I want it to display to 1400  (1197 +10% = 1316 but as step is 100, 1400 is maxValue)

    Marko

  2. Nikolay
    Admin
    Nikolay avatar
    386 posts

    Posted 18 Nov 2011 Link to this post

    Hi Marko,

    You cannot set a 10% extending of the Y axis range this way, however, what you can do is setting a manual axis range, that would best fit the data that you need to display :
    <telerik:RadChart ID="RadChart1" runat="server">  
        <Series>  
            <telerik:ChartSeries Name="Series 1">  
                <Items>  
                    <telerik:ChartSeriesItem Name="Item 1" YValue="1197">  
                    </telerik:ChartSeriesItem>  
                    <telerik:ChartSeriesItem Name="Item 2" YValue="952">  
                    </telerik:ChartSeriesItem>  
                    <telerik:ChartSeriesItem Name="Item 3" YValue="400">  
                    </telerik:ChartSeriesItem>  
                </Items>  
            </telerik:ChartSeries>  
        </Series>  
        <PlotArea>  
            <YAxis AutoScale="false" MinValue="0" MaxValue="1400" Step="100"></YAxis>  
        </PlotArea>  
    </telerik:RadChart>  

    Hope this helps.

    Greetings,
    Nikolay
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marko Gluhak
    Marko Gluhak avatar
    68 posts
    Member since:
    Apr 2006

    Posted 18 Nov 2011 Link to this post

    Well,

    it not helping. I did know and I did it programaticaly. I was just wondering is it possible as a feature in Chart control.

    When I add each item in code behind I set min and max variable and at the end I setup max and min valu for chart.

    Maybe this will be feature in next releases.

    With regars,
    MArko
  5. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 18 Nov 2011 Link to this post

    Hi Marko Gluhak,

    You can set RadChart.PlotArea.YAxis.AxisMode to ChartYAxisMode.Extended and this will extend the axis range with one auto-calculated step (note, however, that the extension step cannot be customized).


    Best wishes,
    Giuseppe
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  6. Vrushali
    Vrushali avatar
    3 posts
    Member since:
    Feb 2013

    Posted 20 Mar 2013 Link to this post

    Do we any similar feature for RadHtmlChart?

    I am looking to have same feature as above but for RadHTML. Setting min and max just not working for me.
  7. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 25 Mar 2013 Link to this post

    Hi Vrushali,

    The Y-axis in the RadHtmlChart automatically adjusts the scale to accommodate the data that comes in it, so that it is not necessary to set the MinValue and MaxValue properties of the YAxis. This is explained in the documentation of each Series type (e.g. LineSeries) that supports YAxis. For example:

    ASPX:
    <telerik:RadHtmlChart runat="server" ID="RadHtmlChart1">
        <PlotArea>
            <Series>
                <telerik:ColumnSeries>
                    <Items>
                        <telerik:SeriesItem YValue="1197" />
                        <telerik:SeriesItem YValue="500" />
                    </Items>
                </telerik:ColumnSeries>
            </Series>
        </PlotArea>
    </telerik:RadHtmlChart>
    You can see the rendering of the above RadHtmlChart here.

    Regards,
    Danail Vasilev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017