You are here

function chart_linear_stripes in Google Chart Tools: Image Charts 5

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

Linear Stripes

Parameters

int $type: (optional) 'bg' or 'c'

int $color :

int $angle : (optional) Specifies the angle of the gradient between 0 (horizontal) and 90 (vertical).

float $width: (optional) Must be between 0 and 1 where 1 is the full width of the chart. Stripes are repeated until the chart is filled.

Return value

array

File

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

Code

function chart_linear_stripes($type = 'c', $color = '000000', $angle = 0, $width = 0.25) {
  return array(
    '#type' => $type,
    '#fill_type' => 'ls',
    '#angle' => $angle,
    '#color' => $color,
    '#width' => $width,
  );
}