How to display a continuous line chart (via Zing Chart) with missing values?

I use a line chart to display two series of data. Each series may have missing values ​​(they are initialized to zero values). As a result, I got a line with interruptions. The problem is how to display a continuous line in case of missing values ​​(bottom diagram in the image). I looked through all the questions with the tags "zingchart", read the documentation and examples on zingchart.com ", but I could not find anything to solve my problem. Here is an image of two diagrams (the top one is what I get, below is something, what I need): http://imgur.com/u7zLq32

+7
javascript visualization zingchart
source share
1 answer

EDIT - Updated based on comment

In this case, you switch from a one-dimensional array to a two-dimensional array as follows:

values = [ [X, Y] ] 

where X corresponds so that the value of the scale X and Y correspond to the value of the scale Y.

Here is a demo: http://demos.zingchart.com/view/R93HI801

You can learn more about our data values ​​here: http://www.zingchart.com/docs/reference/data-format-by-chart-type/

I am on the ZingChart team. Let me know if you have any other questions.

+6
source share

All Articles