Here I have created 2 js fiddle. In my scenario, I want to bind month level data to chart and if the user drag mouse pointer for selection then need to call another API and bind day level data.
1 -> I want to bind data month wise so for each month one point as per year. Month wise data .
Then suppose a user wants to see data day wise then he can drag mouse pointer from Feb to March so depends on that event Can I get the start date and end date of that drag event. So that using that start date and end date I can to call another API and get data for that duration and bind to that chart as per day.
2-> As shown in this jsfiddle Day wise data
I want to bind data to chart as per month. e.g data available for 1 Jan 2017 to 30 Nov 2018 then 23 month’s data will display on the chart on x-axis like Jan 17, Feb 17, March 17 ….., Jan 18, Feb 18 …., Nov 18.
Then If the user drags the selection from Jun 16 to Feb 18 then I want to display data on day wise only for selected date range not all data for 23 months. Can I get the start date and end date on drag event?