Thanks. Alas
options['state'] = "{'colorOption':'_UNIQUE_COLOR'}";
stops the chart altogether and elicits the error
"document.getElementById("google.visualization.MotionChart-0") is
null"
Quotes inside the braces don't work either:
options['state'] = { "'colorOption':'_UNIQUE_COLOR'" }; /* DOES
NOT WORK! */
also stops the chart altogether and elicits the error "invalid object
initializer".
colorOption does not work even if I follow the "Advanced" instruction
at
http://code.google.com/apis/visualization/documentation/gallery/motionchart.html
and paste the state string straight into my code.
What does it take to make colorOption work?
------------
On Feb 21, 11:47 am, Matt <[email protected]> wrote:
> From the docs the 'state' option is a string that contains an object
> definition. Try putting quotes around your object definition.
>
> On Feb 20, 6:29 pm, pzbrawl <[email protected]> wrote:
>
> > var chart = new
> > google.visualization.MotionChart(document.getElementById('chart_div'));
> > var options = {};
> > options['width'] = 800;
> > options['height'] = 500;
> > options['state'] = {'colorOption':'_UNIQUE_COLOR'};
> > chart.draw(data, options);
>
> > The chart paints at the specified size, but it ignores
> > {'colorOption':'_UNIQUE_COLOR'}. What do I have to do to make
> > colorOption work? Thanks.
--
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.