It's just as I suspected. The MotionChart needs a string for the state column, not an object. It doesn't look like there are any single quotes in there, so you should be able to just surround your object with single quotes and almost pass it along as is.
-Sergey /phone On Nov 18, 2012, at 11:50 PM, GFMAG-PM <[email protected]> wrote: Hi Sergey, Thank you for your reply. First, for http:, when I not put it, I works, thanks again. Then, for the code of script, it is: <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":{"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},"view":{},"chartType":"MotionChart","chartName":"Chart 2"} </script> All of the code are from Google docs chart except state, by default it is state:{}; then I copy advanced in chart which set VBAR set unique color, and put it in the {} of state. Can you make this script display VBAR chart as default? Many thanks. On Thursday, November 15, 2012 10:47:32 PM UTC+8, Sergey wrote: > > Hi, the missing "http:" in the links is fine, you don't need to fix that. > Can you show me what your code looks like with the state string filled in? > I did get it to use the column view as the default, so I don't think this > is a bug. > > - Sergey > > > On Wed, Nov 14, 2012 at 11:08 PM, GFMAG-PM > <[email protected]<javascript:> > > wrote: > >> Before, I use Gadget, but google say they will move to chart and stop >> service of Gadget. So I have to use Chart. >> >> Can I say google docs chart function is still in development and still >> exists some bugs? >> >> -- >> 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/-/NGZ6AdHeuvcJ. >> >> To post to this group, send email to >> [email protected]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> 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 view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/IYWTf0DQVc0J. 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. -- 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.
