Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (28 sloc) 0.867 kb
<?php
namespace gchart;
class gMeterChart extends gChart
{
/**
* @brief Google-o-Meter Chart constructor.
*
* Please see documentation for specia usage of functions setVisibleAxes(), addAxisLabel(), and setColors().
*/
function __construct($width = 200, $height = 200)
{
$this->setDimensions($width, $height);
$this->setProperty('cht','gom');
}
public function getApplicableLabels($labels)
{
return array_splice($labels, 0, count($this->values[0]));
}
/**
* @brief Sets the labels for each arrow
*
* You can obtain the same result of this function by setting visible axis x and adding the labels on that axis.
*/
public function setLabels($labels)
{
$this->setProperty('chl', urlencode($this->encodeData($this->getApplicableLabels($labels),"|")));
}
}
Jump to Line
Something went wrong with that request. Please try again.