Yes, you would have '{....}' for the state. The problem is that you have
"state" outside the options. Try this instead:
<script type="text/javascript" src=
"http://ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js">
{"dataSourceUrl":"http://docs.google.com/spreadsheet/tq?key=0AhF_yr_VlAjjdFRCcDRMNUhGakJ3dkxEUFBYcnQ5NkE&transpose=0&headers=0&range=A1%3AD105&gid=0&pub=1","options":{"showChartButtons":true,"titleTextStyle":{"fontSize":16},"vAxes":[{"useFormatFromData":true,"title":"Left
vertical axis
title","minValue":null,"viewWindowMode":"pretty","viewWindow":{"min":null,"max":null},"maxValue":null},{"useFormatFromData":true,"minValue":null,"viewWindowMode":"pretty","viewWindow":{"min":null,"max":null},"maxValue":null}],"booleanRole":"certainty","title":"Chart
title","height":371,"animation":{"duration":500},"width":600,"hAxis":{"useFormatFromData":true,"title":"Horizontal
axis
title","minValue":null,"viewWindowMode":"pretty","viewWindow":{"min":null,"max":null},"maxValue":null},"state":
'{"xZoomedIn":false,"time":"2006","orderedByX":true,"xAxisOption":"2","xLambda":1,"yZoomedIn":false,"yZoomedDataMax":8000,"iconKeySettings":[],"sizeOption":"_UNISIZE","colorOption":"_UNICOLOR","yZoomedDataMin":0,"nonSelectedAlpha":0.4,"playDuration":15000,"xZoomedDataMin":0,"iconType":"VBAR","dimensions":{"iconDimensions":["dim0"]},"orderedByY":false,"yLambda":1,"duration":{"timeUnit":"Y","multiplier":1},"yAxisOption":"2","showTrails":false,"uniColorForNonSelected":false,"xZoomedDataMax":21}'},"view":{},"chartType":"MotionChart","chartName":"Chart
2"}
</script>
On Monday, November 19, 2012 10:15:09 PM UTC-5, GFMAG-PM wrote:
>
> Hi Sergey,
>
> I am not very understanding your meaning. Do you mean put ' ' (single
> quotes) around {xxxxx}?
>
> Because
>
> {"yZoomedDataMax":8000,"time":"2006","orderedByX":true,"showTrails":false,"uniColorForNonSelected":false,"yLambda":1,"iconKeySettings":[],"playDuration":15000,"yAxisOption":"2","colorOption":"_UNIQUE_COLOR","xAxisOption":"2","yZoomedIn":false,"sizeOption":"_UNISIZE","orderedByY":false,"xLambda":1,"xZoomedIn":false,"duration":{"timeUnit":"Y","multiplier":1},"xZoomedDataMax":21,"nonSelectedAlpha":0.4,"iconType":"VBAR","dimensions":{"iconDimensions":["dim0"]},"xZoomedDataMin":0,"yZoomedDataMin":0}
> is I copy from chart advanced, and it say it is a string.
>
> I also tried put single quotes around {xxxxx}, but still not working.
>
> Can you just show me a very simple example? Thanks a lot
>
> Cheers,
> GFMAG-PM
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/L5jRq8dnPKIJ.
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.