Sorry, but the Timeline's axis is not yet configurable.

On Monday, October 27, 2014 5:34:08 AM UTC-4, Vamshi Krishna wrote:
>
> I was able to generate the timeline successfully with the help of JSON.
> When i generated the graph the everything was fine, except the scale on 
> the major axis.
> Currently the scale of the major axis is in terms of hours. It starts from 
> 12AM and keeps ticking till 12AM while the dates are displayed when i hover 
> the timeline. 
>
>
> <https://lh3.googleusercontent.com/-UIV9B389Lo8/VE4RKRoD_3I/AAAAAAAAAHM/G6Z7p4HSEJ8/s1600/Capture.JPG>
> Is there any possibilities of changing the scale value of graph and make 
> it in terms of dates ??
> I want in major axis to show dates only. 
> *Below is the script.*
> <html>
>     <head>        
>         <script type="text/javascript" src="
> https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization',
>        'version':'1','packages':['timeline']}]}"></script>
> <script type="text/javascript">
>
> google.setOnLoadCallback(drawChart);
> function drawChart() {
>
>   var container = document.getElementById('example4.2');
>   var chart = new google.visualization.Timeline(container);
>  
>   var data = new google.visualization.DataTable(<?php echo 
> json_encode($data, JSON_NUMERIC_CHECK); ?>);
>         
>  var options = {
> timeline: { groupByRowLabel: false }
> };
>   chart.draw(data, options);
>   
> }
> </script>
> <div id="example4.2"></div>
> </head>
> <body></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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to