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

Bar Chart, categoryAxis.labels.template, categoryAxis.baseUnit

3 Answers 60 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Nayana
Top achievements
Rank 1
Nayana asked on 09 Dec 2016, 06:12 AM

Hello Team,

I am passing a date object as data source in kendoChart, e.g : { value: 30, date: new Date("Fri Dec 09 2016 10:00:00 GMT+0530 (India Standard Time)") }

When I am giving baseUnit: hours, I am expecting chart to reflect 10:00 on x axis but its giving me half an hour less than the expected one which is 9:30.

Same happens with all the date format I pass as DataSource.

For reference I am attaching a html file, you just have to select hours radio button.

 

Thanks

3 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 12 Dec 2016, 04:12 PM
Hi Nayana,

When setting baseUnit hours, chart will display whole hour. If you would like to show minutes, you should set baseUnit to minutes (example).

Regards,
Iliana Nikolova
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
0
Nayana
Top achievements
Rank 1
answered on 21 Dec 2016, 05:47 AM

Hi Iliana ,

We have to use baseUnit as hours because we need to show the xAxis values in hour interval.

Minutes might work by giving label step but the small lines between the steps will be very close and will be difficult to figure out if we have to show data for whole 24 hrs.

So we are bound to use Hours.

Can we do something to get hour value in 10:00 not as 9:30

 

Thanks

0
Iliana Nikolova
Telerik team
answered on 22 Dec 2016, 03:56 PM
Hi Nayana,

I made some additional tests and it appears there is an issue with time zones in Kendo UI Chart. I logged the problem for further investigation and fixing - you could try its progress here: 

https://github.com/telerik/kendo-ui-core/issues/2561

Regards,
Iliana Nikolova
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Charts
Asked by
Nayana
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Nayana
Top achievements
Rank 1
Share this question
or