Home › forums › Using CanvasJS › Default 'y' value
This topic contains 1 reply, has 2 voices, and was last updated by Sunil Urs 5 years ago.
I have a spline chart with 1 day interval on X axis and populated with values on some of the days.
As expected, the spline interpolation binds all points together, but I want it to default ‘y’ value to 0 on the days where there is no value at all.
Is it possible? How can I achieve this without having to create 0 values myself?
Sorry if I didn’t make myself clear.
You need to create dataPoints with y values set to 0. It is not possible to do it automatically.
You must be logged in to reply to this topic.