FollowUp: Grouped RangeBar with From/To Dates

6 posts, 2 answers
  1. Ted
    Ted avatar
    11 posts
    Member since:
    Jul 2016

    Posted 13 Jul Link to this post

    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

  2. Answer
    Stefan
    Admin
    Stefan avatar
    265 posts

    Posted 15 Jul Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
  4. Ted
    Ted avatar
    11 posts
    Member since:
    Jul 2016

    Posted 15 Jul in reply to Stefan Link to this post

    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

  5. Ted
    Ted avatar
    11 posts
    Member since:
    Jul 2016

    Posted 15 Jul in reply to Ted Link to this post

    ...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

     

  6. Answer
    Stefan
    Admin
    Stefan avatar
    265 posts

    Posted 19 Jul Link to this post

    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.
     
  7. Ted
    Ted avatar
    11 posts
    Member since:
    Jul 2016

    Posted 19 Jul Link to this post

    Hello Stephan,

    Thank you for the additional information.

    Ted

     

Back to Top
Kendo UI is VS 2017 Ready