Setting the dimensions on your div using % should work fine. If you don't specify dimensions in the chart options, the chart defaults to the size of its container. The only potential pitfall is with using % for height, as this only works when the parent of the element has an explicit height - but this is an issue with HTML in general, not the Visualization API.
If you provide an example that demonstrates the problem, I might be able to help you work this out. On Friday, August 15, 2014 11:21:55 AM UTC-4, Bryan Maloney wrote: > > > I hate the "px" size unit. It's the worst possible size unit that can be > imagined. Why? Because it stupidly presumes that ALL MONITORS ARE > IDENTICAL! I use percent or em. Using "px" is such a bad design decision > that it beggars comprehension. Unfortunately, it seems to be impossible to > do any positioning of a scatterchart without using the "px" sizes. When I > try the most sensible approach, setting the size of the div to percents, > the width is good, but the height is always far too short. When I use em, I > can get it to work so long as I do NOT try to position the div. When I do > that, the div is vertically squashed and barely visible. > > All I want is to float the thing, that's it. How do I float it and > preserve the aspect ratio? I will not use the "px" measure. Using "px" is > as bad as putting up in entire web site as a pdf. > -- 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. For more options, visit https://groups.google.com/d/optout.
