How do indicate a skip (missing data point) in a line chart data series

29 views
Skip to first unread message

sbrandt

unread,
Mar 15, 2009, 3:57:04 PM3/15/09
to Python Google Chart
I've tried assign an empty and None within arrays passed to
chart.add_series()
But, I haven't found the syntax to indicate a data point is missing.

In need to indicate missing points on the nth series..

Such as this one (where the "_" is seen in the data encoding to cause
the skip):
==========================================================
http://chart.apis.google.com/chart?cht=lc&chd=s:Hello,wo_Hd&chs=200x125&chm=o,ff9900,0,-1,15.0|d,ff0000,1,-1,10.0|o,000000,0,-1,10,0

Robert Kosara

unread,
Apr 18, 2009, 3:07:09 PM4/18/09
to Python Google Chart
I don't think there is a way to do this. I'm using chart.get_url() and
then manually replace a few things. If your range is set so the lowest
value is never encountered in the chart, you can replace 'AA' with
'__' to get a skip. This also works with the basic encoding, but is
much more fragile, so I would only do this with extended.

Once you're done, you can use urllib.urlretrieve to get the image
downloaded to a file.


On Mar 15, 3:57 pm, sbrandt <steve.r.bra...@gmail.com> wrote:
> I've tried assign an empty and None within arrays passed to
> chart.add_series()
> But, I haven't found the syntax to indicate a data point is missing.
>
> In need to indicate missing points on the nth series..
>
> Such as this one (where the "_" is seen in the data encoding to cause
> the skip):
> ==========================================================http://chart.apis.google.com/chart?cht=lc&chd=s:Hello,wo_Hd&chs=200x1...d,ff0000,1,-1,10.0|o,000000,0,-1,10,0
Reply all
Reply to author
Forward
0 new messages