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

Autoscale property

5 Answers 145 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Marko Gluhak
Top achievements
Rank 1
Marko Gluhak asked on 15 Nov 2011, 04:22 PM
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

5 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 18 Nov 2011, 08:53 AM
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
0
Marko Gluhak
Top achievements
Rank 1
answered on 18 Nov 2011, 10:17 AM
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
0
Accepted
Giuseppe
Telerik team
answered on 18 Nov 2011, 02:30 PM
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
0
Vrushali
Top achievements
Rank 1
answered on 20 Mar 2013, 09:32 PM
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.
0
Danail Vasilev
Telerik team
answered on 25 Mar 2013, 12:32 PM
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.
Tags
Chart (Obsolete)
Asked by
Marko Gluhak
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Marko Gluhak
Top achievements
Rank 1
Giuseppe
Telerik team
Vrushali
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or