You are here

function chart_bar_size in Google Chart Tools: Image Charts 5

Same name and namespace in other branches
  1. 6 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.

Return value

array

File

./chart.module, line 985
Google Charting API. Developed by Tj Holowaychuk

Code

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