You are here

function chart_bar_size in Google Chart Tools: Image Charts 6

Same name and namespace in other branches
  1. 5 chart.module \chart_bar_size()
  2. 7 chart.module \chart_bar_size()

Bar chart bar sizing.

Parameters

int $size: (optional) Height or width of the bar.

int $spacing: (optional) Pixel spacing between bars.

int $group_spacing: (optional) Pixel spacing between bars.

Return value

array

File

./chart.module, line 1120
Provides Google chart API integration.

Code

function chart_bar_size($size = 40, $spacing = 20) {
  return array(
    '#size' => $size,
    '#spacing' => $spacing,
    '#group_spacing' => $group_spacing,
  );
}