function chart_linear_stripes in Google Chart Tools: Image Charts 6
Same name and namespace in other branches
- 5 chart.module \chart_linear_stripes()
- 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 1185 - Provides Google chart API integration.
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,
);
}