Home › forums › Using CanvasJS › Set view with X axis › Reply To: Set view with X axis
As of now setting minimum/maximum is the only way.
I set minimum and maximum like minimum : new Date (2014,….)
It’s work, but I can’t zoom inside this selection.
This is a bug and we’ll fix the issue in the next release. But we do have a workaround though. Setting timestamp instead of date object works fine. Below is the code snippet.
minimum: (new Date(2002,00,1)).getTime(),
maximum: (new Date(2002,00,20)).getTime()