You are here

function chart_linear_gradient in Google Chart Tools: Image Charts 5

Same name and namespace in other branches
  1. 6 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 1024
Google Charting API. Developed by Tj Holowaychuk

Code

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