This is a migrated thread and some comments may be shown as answers.
How to select time range in a line chart
1 Answer 18 Views
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 25 Sep 2013, 11:47 PM
Hi I am trying to understand how to allow user to select a range of dates for a time series based chart - similar to the navigator in the stock chart. I cannot make sense of the documentation and could find an example of this. Appreciate if some one can show me an example.

Thanks,

Jason

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 27 Sep 2013, 11:59 AM
Hi,

The from/to options of the selection accept dates as well:
     categoryAxis: {
        field: "d",
        select: {
          from: new Date(2012, 0, 2), // Inclusive
          to: new Date(2012, 0, 7)    // Exclusive
        }
      }


-- Live demo --

I hope this helps.

Regards,
T. Tsonev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Asked by
Jason
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or