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

Chart Value Axis - Changes it's range (not sure why)

2 Answers 47 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Mickey
Top achievements
Rank 1
Mickey asked on 18 Sep 2013, 06:32 PM
If I have a value that is 12.5 and another at 11 the chart displays correctly (it's range is 9.50 to 13.50).  (See Screenshot attached)

If I have a value that is 8 and another at 5.5 the chart displays incorrectly (it's range is 0 to 10). (See Screenshot attached)

How can I get it to never show the range all the way down to 0?

http://i.imgur.com/Arq5arE.png

2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 19 Sep 2013, 11:27 AM
Hi Mickey,

Basically the valueAxis range is automatically created depending on the values. In order to force particular range you should set min / max values for the valueAxis. For example:  

$("#chart").kendoChart({
  //....
  valueAxis: {
     min: 5,
     max: 20
  }
})
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mickey
Top achievements
Rank 1
answered on 19 Sep 2013, 03:20 PM
Turns out I didn't have the latest version of Kendo (which fixed the narrowRange bug).

I didn't have NULL data, but upgrading my Kendo version fixed my problem.

Thanks!
Tags
Charts
Asked by
Mickey
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Mickey
Top achievements
Rank 1
Share this question
or