CMS  Version 3.9
test_morphing_histogram.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("svg_charts");
3 
4 $chart = new Histogram("histogram", 600, 400, 50, 50, 400, 300, "standard");
5 $chart->setLabels(array("First", "Second", "Third", "Fourth"));
6 $chart->ticks = 5;
7 $chart->max = 100;
8 $chart->morphing = true;
9 
10 $series = new HistogramSeries("block", "Series 1", array(10, 40, 20, 80));
11 $chart->addSeries($series);
12 
13 $series2 = new HistogramSeries("block", "Series 2", array(30, 20, 40, 90));
14 $chart->addSeries($series2);
15 
16 
17 $series3 = new HistogramSeries("block", "Series 3", array(20, 50, 40, 30));
18 $chart->addSeries($series3);
19 
20 
21 $series4 = new HistogramSeries("block", "Series 4", array(90, 20, 10, 50));
22 $chart->addSeries($series4);
23 //$pie->setRadius(150);
24 //$pie->setCenter(180,180);
25 //$pie->setLabelSize(16);
26 //$pie->setStrokeWidth(2);
27 //$pie->showLegend(true, 350, 20);
28 $chart->draw();
29 ?>
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116