Enkhtuvshin
No, the value after the 'options:' should be just the variable options, if
you move your "var options = ..." expression to before the ChartWrapper
call. Like this:
var options = ...
var wrap = new google.visualization.ChartWrapper({
..
'options': options
}
On Tue, Dec 30, 2014 at 11:08 PM, Enkhtuvshin Amgalanbayar <
[email protected]> wrote:
> Do you think this looks right? When I run the script on jsfiddle it does
> not work.
>
>
>
>
>> <script type="text/javascript" src='
>> https://www.google.com/jsapi?autoload={
>> "modules":[{
>> "name":"visualization",
>> "version":"1"
>> }]
>> }'></script>
>> <script type="text/javascript">
>> google.setOnLoadCallback(drawVisualization);
>>
>> function drawVisualization() {
>> var wrap = new google.visualization.ChartWrapper({
>> 'chartType': 'AnnotationChart',
>> 'dataSourceUrl': '
>> https://docs.google.com/spreadsheets/d/1lb_pUshsx4Cy1layoy8WRfgpXLgOBYSSBSRt9e3YmB4/edit#gid=0
>> ',
>> 'containerId': 'visualization',
>> 'query': 'SELECT A,C',
>> 'options':var options = {
>> chart: { ?????
>> hAxis: { ?????
>> gridlines: { ????? WHAT SHOULD I PUT IN
>> THESE ROWS?
>> units: { ????/
>> "days": { ?????
>> "format": [ ????
>>
> "MM/dd/yyyy"] } } } } }
>>
>> });
>> wrap.draw();
>> }
>> </script>
>> </head>
>> <body>
>> <div id="visualization" style="height: 400px; width: 500px;"></div>
>> </body>
>>
>> </html>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> -
978-394-1058
[email protected] <[email protected]> 5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.