Definition at line 41 of file radar_chart.inc.
◆ __construct()
RadarChart::__construct |
( |
|
$id, |
|
|
|
$width = 300 , |
|
|
|
$height = 300 , |
|
|
|
$labels = null , |
|
|
|
$palette = "standard" |
|
) |
| |
◆ addSeries()
RadarChart::addSeries |
( |
|
$series | ) |
|
◆ draw()
Definition at line 144 of file radar_chart.inc.
147 $values = implode(
", ", $this->values);
148 $labels =
"'".implode(
"', '", $this->labels) .
"'";
149 $animate = $this->animate ?
"true" :
"false";
152 $legend = $this->legend ?
"true" :
"false";
153 $percentages = $this->showPercentages ?
"true" :
"false";
154 $download = $this->enableDownload ?
"true" :
"false";
161 foreach($this->series as $s)
163 $data .=
"\t{$this->id}.addSeries(".$s->toScript().
");\n";
167 <script type=
"text/javascript">
168 window.addEvent(
'domready',
function ()
170 var {$this->
id} =
new RadarChart(
'{$this->id}',
176 radius: {$this->radius},
177 palette:
'{$this->palette}',
178 labelSize: {$this->labelSize},
179 fontFamily:
'{$this->fontFamily}',
180 strokeWidth: {$this->strokeWidth},
188 legendX: {$this->legendX},
189 legendY: {$this->legendY},
190 legendSwatchSize: {$this->legendSwatchSize},
191 legendLineHeight: {$this->legendLineHeight},
192 onLegendOver: {$this->onLegendOver},
193 onLegendOut: {$this->onLegendOut},
194 onLegendClick: {$this->onLegendClick},
195 title:
'{$this->title}',
196 titleSize: {$this->titleSize},
197 enableDownload: {$download},
198 units:
'{$this->units}'
201 {$this->
id}.labels = [
$labels ];
211 $dimensions =
"width: 100%; height: auto";
215 $dimensions =
"width: {$containerWidth}; height: {$containerHeight};";
218 echo
"<div id='{$this->id}' style='$dimensions'></div>";
◆ setCenter()
RadarChart::setCenter |
( |
|
$cx, |
|
|
|
$cy |
|
) |
| |
◆ setContainerSize()
RadarChart::setContainerSize |
( |
|
$width, |
|
|
|
$height = "0" |
|
) |
| |
◆ setFontFamily()
RadarChart::setFontFamily |
( |
|
$font | ) |
|
◆ setLabels()
RadarChart::setLabels |
( |
|
$labels | ) |
|
◆ setLabelSize()
RadarChart::setLabelSize |
( |
|
$size | ) |
|
◆ setPalette()
RadarChart::setPalette |
( |
|
$palette | ) |
|
◆ setRadius()
RadarChart::setRadius |
( |
|
$r | ) |
|
◆ setSize()
RadarChart::setSize |
( |
|
$width, |
|
|
|
$height |
|
) |
| |
Definition at line 82 of file radar_chart.inc.
86 if (!$this->cx) $this->cx = $this->
width / 2;
87 if (!$this->cy) $this->cy = $this->
height / 2;
88 if (!$this->radius) $this->radius = min(
$width,
$height) * .4;
◆ setStrokeWidth()
RadarChart::setStrokeWidth |
( |
|
$s | ) |
|
◆ showLegend()
RadarChart::showLegend |
( |
|
$show, |
|
|
|
$x = 0 , |
|
|
|
$y = 0 |
|
) |
| |
◆ $animate
RadarChart::$animate = true |
◆ $containerHeight
RadarChart::$containerHeight |
◆ $containerWidth
RadarChart::$containerWidth |
◆ $cx
◆ $cy
◆ $emboss
RadarChart::$emboss = false |
◆ $fontFamily
RadarChart::$fontFamily = 'Arial, Helvetica' |
◆ $height
◆ $labels
◆ $labelSize
RadarChart::$labelSize = 12 |
◆ $legend
RadarChart::$legend = false |
◆ $legendLineHeight
RadarChart::$legendLineHeight = 30 |
◆ $legendSwatchSize
RadarChart::$legendSwatchSize = 20 |
◆ $legendX
◆ $legendY
◆ $max
◆ $min
◆ $onLegendClick
RadarChart::$onLegendClick = "null" |
◆ $onLegendOut
RadarChart::$onLegendOut = "null" |
◆ $onLegendOver
RadarChart::$onLegendOver = "null" |
◆ $palette
◆ $radius
◆ $scaleToFit
RadarChart::$scaleToFit = false |
◆ $shadow
RadarChart::$shadow = true |
◆ $strokeWidth
RadarChart::$strokeWidth = 1 |
◆ $ticks
◆ $titleSize
RadarChart::$titleSize = 20 |
◆ $values
◆ $width
The documentation for this class was generated from the following file: