CMS  Version 3.9
test_radar.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("svg_charts");
3 
4 $chart = new RadarChart("radar", 600, 600, "standard");
5 $chart->setLabels(array("First", "Second", "Third", "Fourth", "Fifth"));
6 
7 $chart->ticks = 5;
8 $chart->setLabelSize(12);
9 $chart->setStrokeWidth(2);
10 $chart->showLegend(true, 350, 20);
11 
12 $series = new HistogramSeries("smoothed", "Series 1", array(10, 40, 20, 80, 100));
13 $series->set("areaFill", true);
14 $series->set("areaFillOpacity", 0.3);
15 $series->showTooltips();
16 
17 $chart->addSeries($series);
18 
19 $series = new HistogramSeries("smoothed", "Series 2", array(45, 79, 55, 25, 20));
20 $series->set("areaFill", true);
21 $series->set("areaFillOpacity", 0.3);
22 $series->showTooltips();
23 
24 $chart->addSeries($series);
25 
26 echo "<h2>Radar Chart</h2>";
27 
28 $chart->draw();
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
$series
Definition: test_radar.inc:12
$chart
Definition: test_radar.inc:4