Hello IWith the following script, I would expect the hAxis starting at "0" but it starts at "1" ( see the picture attached)..
Any idea what's wrong ? Thanks in advance <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {'packages':['line']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('timeofday', 'Heure'); data.addColumn('number', 'Hier'); data.addColumn('number', 'Aujourd hui'); data.addColumn('number', 'Avant hier'); data.addRows([ [[0, 0, 0],-13.8, 1.8,-11.8], [[0 ,15, 0], 0.9, 1.8, 2.4], [[0,30, 0], 5.4, 1.8, 5.7], [[0, 45, 0], 1.7, 1.8, 10.5], [[1, 0, 0], 11.9, 1.8, 10.4], [[1, 15, 0], 8.8, 13.6, 7.7], [[1, 30, 0], 7.6, 12.3, 9.6], [[1, 45, 0], 12.3, 9.2, 10.6], [[2, 0, 0], 16.9, 2.9, 14.8] ]); var options = { chart: { title: 'Temperature Chevry Ext', subtitle: 'mesure chaque quart d heure' }, width: 900, height: 500, hAxis: { title: 'heures' , format: 'H m' } }; var chart = new google.charts.Line(document.getElementById('line_top_x')); chart.draw(data, google.charts.Line.convertOptions(options)); } </script> -- 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 https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/e7a40ca1-99ce-49dc-b41a-f884b66bc605%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
