Home › forums › Using CanvasJS › Null value points
Tagged: blanks, fill in blanks, NULL values
This topic contains 3 replies, has 3 voices, and was last updated by Sanjoy 2 years, 11 months ago.
I am using a unix timestamp X axis, and then values on the Y. Some of the values are Null on the Y so I have blank spaces in my data – I see from previous comments that people wanted this, however I would like the be able to have these blanks filled in and the gaps filled.
This is how it currently looks: here
This is how I would like it to look (without having to fill in the blank myself): here
If this could be a global chart option, that is false by default, but can be turned on to fill in the blanks that would be amazing!
You can do the same by one of the two options below
1. By skipping the null dataPoint
2. By editing the source code as mentioned below
Inside our library we have renderLine method in which we are using prevDataNull variable for keeping the track of null dataPoints. You can remove / comment prevDataNull = true and it will work as you are expecting.
prevDataNull = true
Thanks for that. I edited the source and changed the prevDataNull and it worked brilliantly.
**************** Update ****************
We just release v1.8.1 Beta with connectNullData feature which will allow you to do the same.
You must be logged in to reply to this topic.