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
?>
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
Histogram
Definition:
histogram.inc:151
HistogramSeries
Definition:
histogram.inc:9
$series
$series
Definition:
test_morphing_histogram.inc:10
$series4
$series4
Definition:
test_morphing_histogram.inc:21
$series3
$series3
Definition:
test_morphing_histogram.inc:17
$series2
$series2
Definition:
test_morphing_histogram.inc:13
$chart
$chart
Definition:
test_morphing_histogram.inc:4
code
cms.sonjara.com
cms
components
svg_charts
pages
test_morphing_histogram.inc
Generated on Tue Mar 23 2021 15:36:14 for CMS by
1.9.1