Axis labels on the Timeline are not configurable at this time. On Thursday, June 26, 2014 7:47:28 AM UTC-4, min ji wrote: > > Hello everyone, > I want to draw a timeline. the codes are below. I find that the precision > of the x axis change with the chart container's width. If the container are > enough wide, the span of the x axis is smaller and the annotation will be > more precise (the duration is shown in hour). but when the container is > narrow, the the span of the x axis and the annotation will be looser (the > duration is shown in day. e.g. the annotation shows "duration: 1 day" , but > actually the duration is 10 mins ). how to slove it? I want the duration is > shown precisely, in minutes and seconds, not in days..... > > <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('example3.1'); > var chart = new google.visualization.Timeline(container); > > var dataTable = new google.visualization.DataTable(); > dataTable.addColumn({ type: 'string', id: 'Position' }); > dataTable.addColumn({ type: 'string', id: 'Name' }); > dataTable.addColumn({ type: 'date', id: 'Start' }); > dataTable.addColumn({ type: 'date', id: 'End' }); > dataTable.addRows([ > [ 'President', 'George Washington', new Date(1789, 3, 29,1,0, > 0), new Date(1797, 2, 3,2,0,0)], > [ 'President', 'John Adams', new Date(1797, 2, 3,1,0,0 > ), new Date(1801, 2, 3,1,0,0)], > [ 'President', 'Thomas Jefferson', new Date(1801, 2, 3,1,0,0 > ), new Date(1809, 2, 3,1,0,0)], > [ 'Vice President', 'John Adams', new Date(1789, 3, 20,1,0, > 0)<span class="js-punctuation" style="color: rgb(102, 102, 102); > font-family: monospace; font-size: 13px; white > ...
-- 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.