Declined
Last Updated: 04 Mar 2021 16:40 by ADMIN
Monish
Created on: 14 Mar 2014 10:36
Category: Kendo UI for jQuery
Type: Feature Request
2
Enable users of kendoCharts to show only integers on the valueAxis
Enable users of kendoCharts to show only integers on the valueAxis.
3 comments
ADMIN
Tsvetomir
Posted on: 04 Mar 2021 16:40

Hi,

The Kendo UI Chart builds its value axis based on the values of the series. Therefore, if there are no values that can be used to determine the lowest and highest values. In such cases, they can be manually declared via the valueAxis.min and valueAxis.max options:

valueAxis:{min:5, max: 45}

Check out the modified version of the jsfiddle:

http://jsfiddle.net/9hsqv4zf/

Since the creation of the value axis cannot be predicted without predefined data in the chart, I am marking closing this item.

 

Kind regards,
Tsvetomir
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Telerik Admin
Posted on: 21 Mar 2014 14:43
Showing integer values on the value axis is supported, as you can see here:
http://demos.telerik.com/kendo-ui/dataviz/line-charts/multiple-axes.html 

If you have something else in mind, please provide more details.

Update: I see that you mean showing axis labels when there's no data. Reverted the status of this item.
Monish
Posted on: 14 Mar 2014 18:56
You are right only in case when there is data in the chart (see link 1). But not when there is no data (see link 2)

link 1: http://jsfiddle.net/rniemeyer/nCMap/
link 2: http://jsfiddle.net/nCMap/56/

Since we have to show number of ad impression in chart, we don't want to show fractions when there aren't any impression. Instead we want to show an empty chart. Ad impressions cannot be fractional. There could be many other things like 'Ad impressions'.