Hi Joel. The example you give here raises two separate issues:
1. null and 0 are not the same thing. From the point of view of the chart, 'null' means nothing is there and 0 means the value 0 (which are not the same). For example, the line [2,3,null,null,4] is very different from [2,3,0,0,4]. In the first case there would be only three points and 2 line segments whereas in the second case there would be 5 points and 4 line segments. 2. When all the data points of a single series are null, no line should be drawn (as is the case indeed). However, the current implementation has a bug which causes an error to be thrown in such a case (which does not affect the chart's behavior though). We will have a look into it. Please let us know if you have further questions. Best, Viz Kid On Tue, Dec 29, 2009 at 9:03 PM, Joel <[email protected]> wrote: > http://www.speechtails.com/example.php > http://www.speechtails.com/example.php/?fix > > Thanks for taking a look. Here's an example with the source code: > toggle between the two different examples. > > the only difference between these two: using a 0 instead of null. > > the blue company gets removed when nulls are used because it doesn't > chart at any point during the month so all values are null. > that shouldn't cause an error though. > > i'm using safari and nightly webkit to test the error appears in the > console log > > http://www.speechtails.com/example.php > http://www.speechtails.com/example.php/?fix > > > > On Dec 24, 12:46 pm, ChartMan <[email protected]> wrote: > > Can you please share an example page that reproduces this error. > > > > > > > > On Wed, Dec 23, 2009 at 8:10 PM, Joel Glovacki <[email protected]> > wrote: > > > CONSOLE MESSAGE: line 97: Error: Problem parsing d="" > > > > > Looks like it may be a webkit error. > > > > > but here's my visualization code: > > > it works fine if i replace just the initial null value with "0" > > > > > { > > > "version": "0.6", > > > "table": { > > > "cols": [ > > > { > > > "id": "A", > > > "label": "Date", > > > "type": "string", > > > "pattern": "" > > > }, > > > { > > > "id": "B", > > > "label": "Speech Tails", > > > "type": "number", > > > "pattern": "#0.###############" > > > }, > > > { > > > "id": "C", > > > "label": "Speech Therapy Online", > > > "type": "number", > > > "pattern": "#0.###############" > > > } > > > ], > > > "rows": [ > > > { > > > "c": [ > > > { > > > "v": "Dec 10" > > > }, > > > { > > > "v": null, > > > "f": "No Rankings" > > > }, > > > { > > > "v": null, > > > "f": "No Rankings" > > > } > > > ] > > > }, > > > { > > > "c": [ > > > { > > > "v": "Dec 22" > > > }, > > > { > > > "v": 42, > > > "f": "Position 42" > > > }, > > > { > > > "v": null, > > > "f": "No Rankings" > > > } > > > ] > > > } > > > ] > > > }, > > > "status": "ok" > > > } > > > > > -- > > > > > You received this message because you are subscribed to the Google > Groups > > > "Google Visualization API" group. > > > To post to this group, send email to > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-visualization-api%[email protected]><google-visualization- > api%[email protected] <api%[email protected]>> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-visualization-api?hl=en. > > -- > > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > >--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
