Home › forums › Report Bugs › Axis X with empty dataPoints
This topic contains 4 replies, has 2 voices, and was last updated by Luc 2 years, 9 months ago.
Dear canvasjs support,
I try to set the X axis with an empty graph. But when I put this, nothing is displaying on axis X:
minimum: new Date(2016,8,4),
maximum: new Date(),
it’s seems there is a problem with date object because if I put in place number values it works fine:
Thank you for the help
new Date(year, month[, day[, hour[, minutes[, seconds[, milliseconds]]]]]);
Similarly in your case 8 will represent to September, which will be more than assigned maximum of new Date(). That’s why you won’t get any labels in axis X.
Thank you for the answer, but unfortunately it is not my issue…
Please have a look on this: http://jsfiddle.net/wkgqsw8c/
Thank you for reporting the issue, we will resolve it and will get back to you soon.
Thank you for the support.
In fact I found a trick, I add a virtual point in the dataPoints in a past time which has nothing related to my chart. Like that it works as I want. http://jsfiddle.net/x1tr0kkv/1/
You must be logged in to reply to this topic.