Here's a responsive bar chart as an example. Need the meta tag for it to be responsive <meta name="viewport" content="width=device-width, initial-scale=1">
Also need
window.addEventListener("resize", drawBarChart, false)
Google Charts doesn't center the title or have subtitles, so I created my
own.
Thanks for letting me know the font suggestion didn't work.
On Tue, Apr 10, 2018 at 6:36 AM, Al Lemieux <[email protected]> wrote:
> Is it possible to define the chart width as a percentage? For a responsive
> design? In the chart options, I've defined the chart width and height, but
> is there a way to make this flexible?
>
>
> --
> 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/6687a3f0-ccc8-4ef1-83e4-
> f99477954d30%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/6687a3f0-ccc8-4ef1-83e4-f99477954d30%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAFyZTc_WMByJhCmVVwFw3oxUiOTBmvubX507%2B7xHwbzwLXzgZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Title: Performance
Cumulative Performance
January 1, 2010 through December 31, 2017
body{
margin-left:auto;
margin-right:auto;
}
.titles{
font-family:Roboto;
font-size:16px;
font-weight:bold;
text-align:center;
}
.subtitles{
font-family:Roboto;
text-align:center;
font-size:12px;
}
