The 'decimal' format appears to be the problem.  I don't know why.  Have
tried formatting another way?

On Tue, Jan 30, 2018 at 3:02 AM, Joaó Tiago Van Niekerk <
[email protected]> wrote:

> Hi Guys,
>
> I have this problem with my chart being cut off. My label is not showing
> and the numbering is cut off.
>
> Does anyone know what the problem can be?
>
> Here is my code:
> google.charts.setOnLoadCallback(Combine_Column1);
>
>
> function Combine_Column1() {
>
>         var data = google.visualization.arrayToDataTable([
>           ['Month', 'East', 'West'],
>           <?php
>   while( $row = sqlsrv_fetch_array($combine1)) {
>       echo "['".$row["Month"]."', ".$row["East"].", ".$row["West"]."],";
> }
>
>   ?>
>         ]);
>
>         var options = {
>           chart: {
>             title: '',
>
>           },
>           bars: 'vertical',
>
>           vAxis: {format: 'decimal', title: 'Level', viewWindow: {
>         max:1630,
>         min:1626
>     }
> },
>
>           height: 500,
>   legend : {position: 'top', maxLines: 2},
>           colors: ['#00B1EA', '#003863', '#7570b3']
>         };
>
>         var chart = new google.charts.Bar(document.getElementById('column_
> combine1'));
>
>          chart.draw(data, google.charts.Bar.convertOptions(options));
>       }
>
>
> <div id="column_combine1" style="padding: 20px;"></div>
>
> P.s my data is coming from a MS SQL Database
>
> --
> 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 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/2faa7cfc-2dce-4e72-bb9a-
> e5be5e606c6d%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/2faa7cfc-2dce-4e72-bb9a-e5be5e606c6d%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>
[email protected] <[email protected]>   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 [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/CAOtcSJP9NjPJ%3D2TQLObj_xAhUdCUo1cNnJGq1OGc2x7KSqxTRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to