Modifying the date format in tooltips in Timeline charts is not yet 
supported, sorry.

On Saturday, November 1, 2014 9:22:39 PM UTC-4, Craig wrote:
>
> I have the below code for a Google timeline graph. 
> When I hover over a bar in the graph, the date in the pop up box only 
> shows the Month and year i.e. Jan 2014. 
> I need this to show the full date i.e 23 Jan 2014. 
> Does anyone know how i make this change?
>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <title>Untitled Document</title>
> </head>
> <body>
> <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('example1');
>
>   var chart = new google.visualization.Timeline(container);
>
>   var dataTable = new google.visualization.DataTable();
>   var formatter_long = new google.visualization.DateFormat({formatType: 
> 'long'});
>
>
>
>   dataTable.addColumn({ type: 'string', id: 'Event' });
>   dataTable.addColumn({ type: 'date', id: 'Start' });
>   dataTable.addColumn({ type: 'date', id: 'End' });
>
>   dataTable.addRows([
>     [ 'Original Package email', new Date(2014, 9, 23), new Date(2014, 9, 
> 25) ],
>     [ 'Dreamin’ Travel Packages On Sale',      new Date(2014, 9, 26),  new 
> Date(2014, 10, 30) ],
>     [ 'Travel Packages on sale',      new Date(2014, 10, 6),  new 
> Date(2014, 10, 30) ],
>     [ 'Travel Package sale over',      new Date(2014, 10, 30),  new 
> Date(2014, 10, 30) ],
>     [ 'Wrestlemania Tickets on sale',  new Date(2014, 11, 22),  new 
> Date(2015, 3, 30) ]]);
>
>   chart.draw(dataTable);
> }
> </script>
> <div id="example1" style="width: 
>
> 900px; height: 360px;"></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.

Reply via email to