Could you try the 'upcoming' version rather than 'current'?  There are lots
of changes regarding the display of axis ticks that might help in this case.


On Mon, Feb 12, 2018 at 11:56 AM, Domh4445 <domh4...@gmail.com> wrote:

> 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 google-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to google-visualization-api@
> googlegroups.com.
> 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
> <https://groups.google.com/d/msgid/google-visualization-api/e7a40ca1-99ce-49dc-b41a-f884b66bc605%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
dlalibe...@google.com <dlalibe...@google.com>   5CC, Cambridge 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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
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/CAOtcSJPqwTnCAmU4zghssvOs%3DmwW9pjO2%3DGA2wYMB%2BLtLO2cwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to