v2.0 beta2, time scale min and max date settings are not working

Hi,

I am using v2.0 beta2, trying to set min and max date but chart is not showing all x-axis ticks.

My requirement is, chart should always have x-axis ticks even if data is there or not.

For example, if current hour is 2:00, ticks should be: 1:00, 1:10, 1:20, 1:30, 1:40, 1:50, 2:00 (10 mins apart).

This is scatter plot for time scale.

Here is some of the code. With this chart shows only first tick on the x-axis, no other ticks are shown, how to fix this? for full code: https://jsfiddle.net/ch4gdusL/1/

       `var timeFormat = 'MM/DD/YYYY HH:mm:SS';`
    `function startDateString(days) {` 
        `var date = moment().format(timeFormat);`
        `return date;`
   `}`
 `function endDateString(hours) {`
        `var date = moment().add(hours, 'h').format(timeFormat);`
        `return date;`
`}`

time: {
displayFormat: 'HH:mm',
unit: 'minute',
min: startDateString(),
max: endDateString(1)
},

Author: Fantashit

1 thought on “v2.0 beta2, time scale min and max date settings are not working

Comments are closed.