You are here

function chart_linear_gradient in Google Chart Tools: Image Charts 6

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

Linear Gradient

Parameters

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

int $color:

int $offset: (optional) Cpecify at what point the color is pure where: 0 specifies the right-most chart position and 1 the left-most.

Return value

array

File

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

Code

function chart_linear_gradient($type = 'c', $color = '000000', $offset = 0) {
  return array(
    '#type' => $type,
    '#fill_type' => 'lg',
    '#color' => $color,
  );
}