Home forums Using CanvasJS Null value points

This topic contains 3 replies, has 3 voices, and was last updated by  Sanjoy 7 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8616

    edwade3
    Participant

    Hi,

    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!

    #8621

    Anjali
    Participant

    edwade3,

    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.

    __
    Anjali

    • This reply was modified 1 year, 7 months ago by  Anjali.
    #8625

    edwade3
    Participant

    Perfect,

    Thanks for that. I edited the source and changed the prevDataNull and it worked brilliantly.

    Thanks again!

    #10325

    Sanjoy
    Moderator

    **************** Update ****************

    We just release v1.8.1 Beta with connectNullData feature which will allow you to do the same.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.