CMS  Version 3.9
test_dial.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("svg_charts");
3 
4 $dial = new Dial("dial_test", 400, 450, 66, "66%");
5 $dial->setRadius(150);
6 $dial->setCenter(200,180);
7 $dial->setLabelSize(48);
8 $dial->setLabelPosition(200, 400);
9 $dial->setStrokeWidth(6);
10 $dial->setColorRange('#134b8f');
11 $dial->shadow = true;
12 $dial->scaleToFit = true;
13 
14 $dial2 = new Dial("dial_test2", 400, 450, 33, "33%");
15 $dial2->setRadius(150);
16 $dial2->setCenter(200,180);
17 $dial2->setLabelSize(48);
18 $dial2->setLabelPosition(200, 400);
19 $dial2->setStrokeWidth(6);
20 $dial2->setColorRange('#134b8f');
21 $dial2->shadow = true;
22 $dial2->scaleToFit = true;
23 
24 
25 $dial3 = new Dial("dial_test3", 400, 450, 50, "50%");
26 $dial3->setRadius(150);
27 $dial3->setCenter(200,180);
28 $dial3->setLabelSize(48);
29 $dial3->setLabelPosition(200, 400);
30 $dial3->setStrokeWidth(6);
31 $dial3->setColorRange('#134b8f');
32 $dial3->shadow = true;
33 $dial3->scaleToFit = true;
34 
35 
36 $dial4 = new Dial("dial_test4", 400, 450, 0, "0%");
37 $dial4->setRadius(150);
38 $dial4->setCenter(200,180);
39 $dial4->setLabelSize(48);
40 $dial4->setLabelPosition(200, 400);
41 $dial4->setStrokeWidth(6);
42 $dial4->setColorRange('#134b8f');
43 $dial4->shadow = true;
44 $dial4->scaleToFit = true;
45 
46 ?>
47 <div style='float:left;width:25%'><?$dial->draw();?></div><div style='float:left;width:25%'><?$dial2->draw();?></div><div style='float:left;width:25%'><?$dial3->draw();?></div><div style='float:left;width:25%'><?$dial4->draw();?></div>
$helpTree style
Definition: tree.inc:46
Definition: dial.inc:42
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
$dial3
Definition: test_dial.inc:25
$dial
Definition: test_dial.inc:4
$dial4
Definition: test_dial.inc:36
$dial2
Definition: test_dial.inc:14