Since you are using a ChartWrapper, you should add the options to the
properties you pass to the ChartWrapper, like this:

        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,B,C,D WHERE B > 100 ORDER BY B',

'options': options // note, no "," before "}"

        });


On Tue, Dec 30, 2014 at 9:41 AM, Enkhtuvshin Amgalanbayar <
[email protected]> wrote:

> So this is script I have right now. But still not sure where I should add
> var options = {
>   chart: {
>     hAxis: {
>       gridlines: {
>         units: {
>           "days": {
>             "format": [
>               "MM/dd/yyyy"]   }   }  }  }  }
>
> in order to fix the date. couldn't find any range nor chart option on in
> my current script
>
>
>
>> <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,B,C,D WHERE B > 100 ORDER BY B',
>>
>>
>>
>>         });
>>
>>         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.
  • [visualization-api] Annota... Enkhtuvshin Amgalanbayar
    • Re: [visualization-ap... 'Daniel LaLiberte' via Google Visualization API
      • Re: [visualizatio... Enkhtuvshin Amgalanbayar
        • Re: [visualiz... 'Daniel LaLiberte' via Google Visualization API
          • Re: [visu... Enkhtuvshin Amgalanbayar
            • Re: ... 'Daniel LaLiberte' via Google Visualization API
              • ... Enkhtuvshin Amgalanbayar
                • ... Enkhtuvshin Amgalanbayar
                • ... 'Daniel LaLiberte' via Google Visualization API
                • ... Enkhtuvshin Amgalanbayar
                • ... 'Daniel LaLiberte' via Google Visualization API
                • ... Enkhtuvshin Amgalanbayar
                • ... 'Daniel LaLiberte' via Google Visualization API
                • ... Enkhtuvshin Amgalanbayar
                • ... 'Daniel LaLiberte' via Google Visualization API
                • ... Enkhtuvshin Amgalanbayar
                • ... 'Daniel LaLiberte' via Google Visualization API
                • ... Enkhtuvshin Amgalanbayar
                • ... 'Daniel LaLiberte' via Google Visualization API

Reply via email to