A new version of the Google Visualization API was released to production on May 2, 2012

270 views
Skip to first unread message

Eyal Cohen

unread,
May 3, 2012, 3:26:43 AM5/3/12
to google-visua...@googlegroups.com, google-chart-too...@googlegroups.com
We have pushed a new release to production.

Some of the most interesting features:
    1. Added a configuration option to control the width of bars in a ColumnChart/BarChart and candlesticks in CandlestickChart
    2. Fixed crash when calling clearChart() twice in a row for charts in the corechart package
    3. Fixed malfunctioning interactivity when calling draw() after clearChart() for charts in the corechart package
    4. GeoChart: New province maps for Estonia, Finland, Lithuania, Latvia, Somalia and South Sudan
    5. Gauge: Fixed crash when calling draw() twice in Firefox.

IMPORTANT: in our next release (expected early June) we will flip the default value of the forceIFrame option to 'false'. Please make sure to test your installations with this option set to 'false' in advance, and report any issues.

Enjoy,
The Google Chart Tools team

asgallant

unread,
May 3, 2012, 10:44:04 AM5/3/12
to google-visua...@googlegroups.com, google-chart-too...@googlegroups.com
What are the parameters for setting the bar widths in a bar chart?

visigoth

unread,
May 3, 2012, 11:57:21 AM5/3/12
to google-visua...@googlegroups.com, google-chart-too...@googlegroups.com
The option is named bar.groupWidth. That is, we introduced a new option called bar, which currently has only one sub-option called groupWidth.

Documentation for it will be available next week. For now:
Description: The width of a group of bars, either by an absolute value in pixels (e.g., '20'), or by a percentage of the total width (e.g., '30%').
Default: the golden ratio (~61.8%).

The new option is available for Bar, Column, Candlestick & Combo charts.

asgallant

unread,
May 3, 2012, 12:51:14 PM5/3/12
to google-visua...@googlegroups.com, google-chart-too...@googlegroups.com
For those who are interested, after testing I determined that the groupWidth is (properly) limited by a maximum that is roughly chartArea width / number of rows (there seems to always be some small amount of padding in between groups).  When using percentages, it is the percentage of this width, not the chartArea's width, that you are setting.
Reply all
Reply to author
Forward
0 new messages