Home › forums › Using CanvasJS › Multi data series with no data
Tagged: Multi data-series null nulltozero
This topic contains 3 replies, has 2 voices, and was last updated by Manoj Mohan 2 months, 1 week ago.
I have a multi data-series spline like this.
everything is just fine except for user 2 and 3.
in normal behavior, the chart connects “1-1-2019” and “5-1-2019”.
is there any way to set “2-1-2019″,”3-1-2019″,”4-1-2019” to “y:0” for user 3 without getting dirty with backend codes?
Please take a look at this JSFiddle.
Thanks @monaj mohsen
doing it in the backend is easier. my chart is more complex than that.
I was looking for some kind of built-in option in canvasjs.
If I’m sure there is no such option, I will do it in the backend.
Sorry, there is no feature built-in to add missing datapoints. CanvasJS just renders the chart with datapoints that you have passed in chart-options and it doesn’t add any extra datapoints. You can do it in backend – as you have mentioned.
You must be logged in to reply to this topic.