This is a super-small patch to update the chart bar sizing parameter for the Charts API change that uses an auto/relative flag now:

http://code.google.com/apis/chart/styles.html#bar_width

Patched again Drupal 6 HEAD.

CommentFileSizeAuthor
chart_barsize.patch.txt754 bytesyhahn

Comments

boombatower’s picture

Status: Needs review » Needs work

Lets makes some constants for:

'#mode'    => $relative ? 'r' : 'a',

If possible please use http://drupal.org/patch.

13rac1’s picture

Title: Patch for auto/relative chart bar sizing » Support for absolute/relative chart bar sizing
Version: 6.x-1.2 » 7.x-1.x-dev
Category: task » feature
Status: Needs work » Fixed

This was implemented in #1245722: Make #bar_size support automatic and relative options. FYI (and me too!): 'a' is for absolute, not automatic. See docs: http://code.google.com/apis/chart/image/docs/gallery/bar_charts.html#chbh

Constants added to 7.x-1.x. "Patch to be ported" for both changes added to #324133: Bar chart, spacing between sets

/**
 * Bar Width and Spacing
 */
define('CHART_ABSOLUTE_SPACING', 'a');
define('CHART_RELATIVE_SPACING', 'r');

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.