You are here

function chart_grid_lines in Google Chart Tools: Image Charts 7

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

Grid Lines

Parameters

int $x_step: Space in pixels in which to step the horizontal lines.

int $y_step: Space in pixels in which to step the vertical lines.

int $segment_length: (optional) Visibile segment length in pixels.

int $blank_segment_length: (optional) Blank segment length in pixels.

Return value

array

1 call to chart_grid_lines()
system_charts_build in system_charts/system_charts.module
Gather data and build a chart API structure.

File

./chart.module, line 1086
Provides primary Drupal hook implementations.

Code

function chart_grid_lines($x_step, $y_step, $segment_length = 1, $blank_segment_length = 3) {
  return array(
    '#x_step' => $x_step,
    '#y_step' => $y_step,
    '#segment_length' => $segment_length,
    '#blank_segment_length' => $blank_segment_length,
  );
}