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

setting Y axis min max and step from datasource

2 Answers 361 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
KocSistem
Top achievements
Rank 1
KocSistem asked on 05 Jul 2012, 07:59 AM
Hi,
I have a line chart which shows tempriture of a room daily. The tempriture values come from a datasource.
The X axis shows days and Y axis shows the tempriture values.

Think of that i have temriture values from dataset as below:
18.22 ,18.83 , 19.30 , 20.05 , 19.15 ,  19.25
While using the line chart by default settings, the Y axis starts from 0 and ends with some value over 21. And the steps are generated automatically. 
As seen here the min value is 18,22 and max value is 20.05 
I would like to see the line chart as below
Y axis starting from 18 and ending at 21 and steps are 0.1 
Coul you please describe how to achieve that.

I have attached a sample chart which is generated with a different tool. The chart in the screenshot describes perfectly what i want.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Elian
Telerik team
answered on 06 Jul 2012, 02:17 PM
Hello,

The easiest way to go, would be to set the the following property:
Chart -> PlotArea -> YAxis -> IsZeroBased = False - this will make the YAxis to start from the minVal and go to the maxVal and to do so it requires AutoScale = True;
You can also set the Step but you in order to do that AutoScale must be False (which will disable the automatic minVal and maxVal detection). If you choose to use this approach you will have to manually set the MaxValue and MinValue which will probably require some programmatical intervention. 
 
Kind regards,
Elian
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Gaurav
Top achievements
Rank 1
answered on 20 Oct 2013, 12:09 PM
having the same problem but with report designer tool(stand alone)
But i cant find Y axis under Plot are ?
Tags
General Discussions
Asked by
KocSistem
Top achievements
Rank 1
Answers by
Elian
Telerik team
Gaurav
Top achievements
Rank 1
Share this question
or