There are two ways to approach this. If you use the ATL options emulation,
you need to set the height and width in the style of the div (or in CSS, as
long as the dimensions of the div are fixed before drawing the chart).
Also, if you use the ATL options emulation, you should add a 3rd parameter
to the draw call:
chart1.draw(data, { //'allValuesSuffix': '', // A suffix that is added to
all values 'colors': ['blue'], 'displayAnnotations': true,'displayExactValues':
true, // Do not truncate values (i.e. using K suffix)'displayRangeSelector' :
true, // Do not sow the range selector'displayZoomButtons': true, // DO not
display the zoom buttons'fill': 0, // Fill the area below the lines with 20%
opacity'legendPosition': 'newRow', // Can be sameRow//'max': 500,//'min':
30,'scaleColumns': [0, 1], // Have two scales, by the first and second
lines'scaleType': 'allmaximized', 'thickness':
2, 'zoomStartTime': new Date(2008, 0 ,1), 'zoomEndTime': new Date(2008, 06
,31) }, true);
Emulation of the ATL options is not perfect, and not all options are
supported. You can switch to using
LineChart<https://developers.google.com/chart/interactive/docs/gallery/linechart#Configuration_Options>and
ChartRangeFilter<https://developers.google.com/chart/interactive/docs/gallery/controls#chartrangefilter>options
to further customize the chart, if you wish. The format for doing
so is:
chart.draw(data, {
chart: {
// LineChart options
},
control: {
// ChartRangeFilter options
}
});
On Tuesday, February 19, 2013 4:37:24 AM UTC-5, [email protected] wrote:
>
> Ah yes ! it works !
>
> How adjust the height and the width ? I can just adjust the seizes in the
> chart area :
>
> chartArea: {}, height: 50
>
> But i don't find for the chart.
>
> Thanks again :)
>
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.