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

FollowUp: Grouped RangeBar with From/To Dates

5 Answers 92 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Ted
Top achievements
Rank 1
Ted asked on 13 Jul 2016, 01:56 PM

How can I use date ranges for the 'from' and 'to' values in this example? - example

The example works when using integers, but when I use dates nothing shows up in the chart.

Thank you,
Ted

5 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 15 Jul 2016, 09:14 AM
Hello Ted,

The provided example is not working with dates because the value axis does not support date values. The Kendo UI RangeBar Chart can be used only with numbers.

I can suggest checking our example on how to take the numeric value from the date object and use it in the RangeBar Chart: 

http://docs.telerik.com/kendo-ui/controls/charts/how-to/timeline-using-range-bars

Also, I can suggest submitting a feature request in our UserVoice portal and based on its popularity we may implement it in a future request.

http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback

Let me know if you need additional information on this matter.

Regards,
Stefan
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Ted
Top achievements
Rank 1
answered on 15 Jul 2016, 04:36 PM

Hello Stefan,

I have submitted a request as you suggested.

I am also very pleased to have integrated 'using the numeric value from the date object' into my RangeBar Chart. Here is the new example: example

Can you please tell me if I have any other options regarding the 'majorUnit' property, or is milliseconds the only unit of measure for this example? For example, is there a way to use the number of days as the majorUnit?

Thank you so much for your help!

Regards,

Ted

0
Ted
Top achievements
Rank 1
answered on 15 Jul 2016, 04:43 PM

...oops... the link above doesn't work...I'll try to provide the proper link to the example: example

If it doesn't work, it is http://dojo.telerik.com/OseMo/7

 

0
Accepted
Stefan
Telerik team
answered on 19 Jul 2016, 09:18 AM
Hello Ted,

I'm glad to hear that you managed to implement the Kendo UI Chart value axis to work with Date objects.

Regarding the majorUnit configuration of the Chart, it is expecting a number value which is only interpreted in milliseconds when using Dates:

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-valueAxis.majorUnit

Let me know if you need additional information for the Kendo UI Chart API.

Regards,
Stefan
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Ted
Top achievements
Rank 1
answered on 19 Jul 2016, 12:05 PM

Hello Stephan,

Thank you for the additional information.

Ted

 

Tags
Charts
Asked by
Ted
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Ted
Top achievements
Rank 1
Share this question
or