Hi,
There's a brand new feature that was just released to our release candidate,
that can help you here. A new option called chartArea was added,
which allows controlling the location and size of the main chart area.
It contains 4 members: top, left, height, width. Each of those 4 members can
be either a number, in which case it has a unit of pixels, or a string that
ends with '%', in which case it denotes percentage out of the total
height/width (respectively). So for example, if you want the main chart area
to take the full size of the div, leaving no space for peripheral elements
like titles/legend/axis-labels, you could specify chartArea: {top:0, left:0,
height:'100%', width:'100%'}. In addition, the new release candidate allows
positioning those peripheral elements inside the chart area (on top of the
graph itself). All this will be documented when the RC turns final.To use the release candidate, change the version number in the google.loadcall from '1' to '1.1'. On Fri, Oct 29, 2010 at 10:56 AM, Andy <[email protected]> wrote: > I'm using a line chart like the one here: > > http://code.google.com/apis/visualization/documentation/gallery/linechart.html > - I'd like to set the chart so that it takes up the full width of it's > containing element, however while I can set its width, and the chart > is rendered in an iframe with that width, the chart itself is not so > wide and there is white-space to the left and right of the chart (as > you can see in the documentation's example) which I want to get rid > of. Does anyone know if this is possible? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
