|
Gaps are being drawn |
Posted by Claudio Weber Abramo on Jul-15-2013 10:12 |
|
Dear Peter:
I've an array of data like this:
Array ( [0] => NoValue [1] => NoValue [2] => 100 [3] => 100 [4] => 75 [5] => 75 [6] => 50 [7] => NoValue [8] => NoValue [9] => NoValue [10] => NoValue [11] => NoValue [12] => NoValue [13] => NoValue [14] => 80 [15] => 100 [16] => NoValue [17] => NoValue [18] => NoValue [19] => NoValue [20] => NoValue [21] => NoValue [22] => NoValue [23] => NoValue [24] => NoValue [25] => NoValue [26] => 100 [27] => 83 [28] => 100 [29] => 100 [30] => 100 )
However, when plotting the graph, instead of leaving gaps, the "NoValues" plot at zero (see the attached png miniature -- the actual graph is SVG).
Even trying to set the gap color by using setGapColor doesn't change the graph. It is as though the gaps are not being recognized.
What might be happening?
Thanks
|
Re: Gaps are being drawn |
Posted by Claudio Weber Abramo on Jul-15-2013 22:10 |
|
Ah, I've found out what's wrong. The "NoValues" were being added to the data array as strings, and as a srting has value 0, they were being computed as zeroes. |
|