The layout of the material charts is different from that of the classic
charts. For the classic charts, the chart area and area above the chart
are determined proportionally to the total height. But you can override
the default by specifying a chartArea.top option. e.g.
chartArea: { top: 20 }
On Sun, Oct 25, 2015 at 6:31 AM, Chris <[email protected]> wrote:
> I am creating a column chart with Google Charts API ->
> http://plnkr.co/edit/GTg6MfMephB8lR3Kp66S?p=preview
>
> but for some reason an odd space is forming on top of the page.
>
> This started happening after I changed the Material Chart library :
>
>
> google.load("visualization", "1.1", {packages:["bar"]});
> var chart = new google.charts.Bar(document.getElementById(
> 'columnchart_material'));
>
>
> var data = new google.visualization.DataTable();
>
>
> and used a classic chart instead (I need it since the Material Library is
> not complete and it doesn't allow custom Tooltips):
>
>
> google.load('visualization', '1', {packages: ['corechart', 'bar']});
> var chart = new google.visualization.BarChart(document.getElementById(
> 'columnchart_material'));
>
>
> var data = google.visualization.arrayToDataTable([]);
>
>
>
> This is the original Material Chart ->
> http://plnkr.co/edit/dMVKt3ISlMtyiYmVeN1K?p=preview
>
> What's wrong?
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/4947fca2-35ba-41b2-8686-3cd201eb137f%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/4947fca2-35ba-41b2-8686-3cd201eb137f%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> -
978-394-1058
[email protected] <[email protected]> 5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton 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 http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO%3D21HuBFvyzgFLTa_uTwZFtyUDJ5gUi9cUhiwAVQYQNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.