how do i change the width and height of my chart to work with view port units (vh, vw)

19 views
Skip to first unread message

fm

unread,
Apr 20, 2016, 12:51:26 PM4/20/16
to Google Visualization API
I tried styling the containing div with vw and vh but the chart itself is not following the div styling and is defaulting to 40px width and 200px height?

Daniel LaLiberte

unread,
Apr 20, 2016, 1:50:02 PM4/20/16
to Google Visualization API
You could try first setting with vw and vh units, and then determining the equivalent px units.  Each chart might behave differently because they don't all use the same method of determining the container size.  Which chart type are you using?

On Wed, Apr 20, 2016 at 12:51 PM, fm <majd...@gmail.com> wrote:
I tried styling the containing div with vw and vh but the chart itself is not following the div styling and is defaulting to 40px width and 200px height?

--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@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/73ae58bb-e5e1-4fab-ada1-a74a4bd9800d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages