forked from pacbard/gChartPhp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgScatterChart.php
More file actions
28 lines (28 loc) · 770 Bytes
/
gScatterChart.php
File metadata and controls
28 lines (28 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
namespace gchart;
class gScatterChart extends gChart
{
function __construct($width = 200, $height = 200)
{
$this->setDimensions($width, $height);
$this->setProperty('cht','s');
}
/**
* @brief Returns the applicable labels
*
* There is no reason to use this function. Please refer to the documentation to know how to use colors and legend.
*/
public function getApplicableLabels($labels)
{
return $labels;
}
/**
* @brief Sets the colors for the chart.
*
* It has a different separator than the one in the parent class
*/
public function setColors($colors)
{
$this->setProperty('chco', $this->encodeData($this->getApplicableLabels($colors),"|"));
}
}