function chart_shape_marker in Google Chart Tools: Image Charts 5
Same name and namespace in other branches
- 6 chart.module \chart_shape_marker()
- 7 chart.module \chart_shape_marker()
Shape Marker
Parameters
int $index: (optional) The index of the line on which to draw the marker.
float $point: (optional) Floating point value that specifies on which data point the marker will be drawn.
string $type :
- CHART_MARKER_ARROW
- CHART_MARKER_CROSS
- CHART_MARKER_DIAMOND
- CHART_MARKER_CIRCLE
- CHART_MARKER_SQUARE
- CHART_MARKER_VIRTICAL_LINE_X
- CHART_MARKER_VIRTICAL_LINE_TOP
- CHART_MARKER_HORIZONTAL_LINE
- CHART_MARKER_X
int $size: (optional) Marker size in pixels.
string $color :
Return value
array
File
- ./
chart.module, line 942 - Google Charting API. Developed by Tj Holowaychuk
Code
function chart_shape_marker($index = 0, $point = 0, $type = 'o', $size = 20, $color = '000000') {
return array(
'#type' => $type,
'#color' => $color,
'#index' => $index,
'#point' => $point,
'#size' => $size,
);
}