-
Notifications
You must be signed in to change notification settings - Fork 45
/
examples.php
483 lines (480 loc) · 17.4 KB
/
examples.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
<?php
namespace gchart;
#ini_set('display_errors','1');
?>
<html>
<head>
<title>PHP Wrapper for Google Chart API Examples - 0.5</title>
<style type="text/css">
img { display:block; }
</style>
</head>
<body>
<h1>PHP Wrapper for Google Chart API Examples - 0.5</h1>
<h1>Quick examples.</h1>
<?php
require_once(__DIR__ . "/gchart/gChartInit.php");
?>
<h2>Pie Chart</h2>
<?php
$piChart = new gPieChart();
$piChart->addDataSet(array(112,315,66,40));
$piChart->setLegend(array("first", "second", "third","fourth"));
$piChart->setLabels(array("first", "second", "third","fourth"));
$piChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));
?>
<img src="<?php print $piChart->getUrl(); ?>" /> <br> pie chart using the gPieChart class.
<p>
<em>code:</em><br>
<code>
$piChart = new gPieChar();<br>
$piChart->addDataSet(array(112,315,66,40));<br>
$piChart->setLegend(array("first", "second", "third","fourth"));<br>
$piChart->setLabels(array("first", "second", "third","fourth"));<br>
$piChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));<br>
</code>
</p>
<h2>3D Pie Chart</h2>
<?php
$pie3dChart = new gPie3DChart();
$pie3dChart->addDataSet(array(112,315,66,40));
$pie3dChart->setLegend(array("first", "second", "third","fourth"));
$pie3dChart->setLabels(array("first", "second", "third","fourth"));
$pie3dChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));
?>
<img src="<?php print $pie3dChart->getUrl(); ?>" /> <br> 3D pie chart using the gPieChart class.
<p>
<em>code:</em><br>
<code>
$pie3dChart = new gPie3DChart();<br>
$pie3dChart->addDataSet(array(112,315,66,40));<br>
$pie3dChart->setLegend(array("first", "second", "third","fourth"));<br>
$pie3dChart->setLabels(array("first", "second", "third","fourth"));<br>
$pie3dChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));<br>
</code>
</p>
<h2>Concentric Pie Chart</h2>
<?php
$CPChart = new gConcentricPieChart();
$CPChart->addDataSet(array(112,315,66,40));
$CPChart->addDataSet(array(100,235,346,50));
$CPChart->addColors(array("008800", "880000"));
$CPChart->addColors(array("000088", "888800"));
$CPChart->addLegend(array('1', '2', '3', '4'));
$CPChart->addLegend(array('1a', '2a', '3a', '4a'));
?>
<img src="<?php print $CPChart->getUrl(); ?>" /> <br> pie chart using the gPieChart class.
<p>
<em>code:</em><br>
<code>
$CPChart = new gConcentricPieChart();<br>
$CPChart->addDataSet(array(112,315,66,40));<br>
$CPChart->addDataSet(array(100,235,346,50));<br>
$CPChart->addColors(array("008800", "880000"));<br>
$CPChart->addColors(array("000088", "888800"));<br>
$CPChart->addLegend(array('1', '2', '3', '4'));<br>
$CPChart->addLegend(array('1a', '2a', '3a', '4a'));<br>
</code>
</p>
<h2>Line Chart</h2>
<?php
$lineChart = new gLineChart(300,300);
$lineChart->addDataSet(array(112,315,66,40));
$lineChart->addDataSet(array(212,115,366,140));
$lineChart->addDataSet(array(112,95,116,140));
$lineChart->setLegend(array("first", "second", "third","fourth"));
$lineChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));
$lineChart->setVisibleAxes(array('x','y'));
$lineChart->setDataRange(30,400);
$lineChart->addAxisRange(0, 1, 4, 1);
$lineChart->addAxisRange(1, 30, 400);
$lineChart->addBackgroundFill('bg', 'EFEFEF');
$lineChart->addBackgroundFill('c', '000000');
?>
<img src="<?php print $lineChart->getUrl(); ?>" /> <br> line chart using the gLineChart class.
<p>
<em>code:</em><br>
<code>
$lineChart = new gLineChart(300,300);<br>
$lineChart->addDataSet(array(112,315,66,40));<br>
$lineChart->addDataSet(array(212,115,366,140));<br>
$lineChart->addDataSet(array(112,95,116,140));<br>
$lineChart->setLegend(array("first", "second", "third","fourth"));<br>
$lineChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));<br>
$lineChart->setVisibleAxes(array('x','y'));<br>
$lineChart->setDataRange(30,400);<br>
$lineChart->addAxisRange(0, 1, 4, 1);<br>
$lineChart->addAxisRange(1, 30, 400);<br>
$lineChart->addBackgroundFill('bg', 'EFEFEF');<br>
$lineChart->addBackgroundFill('c', '000000');<br>
</code>
</p>
<h2>Line Chart with Strip Fill</h2>
<?php
$lineChart = new gLineChart(300,300);
$lineChart->addDataSet(array(112,315,66,40));
$lineChart->addDataSet(array(212,115,366,140));
$lineChart->addDataSet(array(112,95,116,140));
$lineChart->setLegend(array("first", "second", "third","fourth"));
$lineChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));
$lineChart->setVisibleAxes(array('x','y'));
$lineChart->setDataRange(30,400);
$lineChart->addAxisLabel(0, array("This", "axis", "has", "labels!"));
$lineChart->addAxisRange(1, 30, 400);
$lineChart->setStripFill('bg',0,array('CCCCCC',0.15,'FFFFFF',0.1));
?>
<img src="<?php print $lineChart->getUrl(); ?>" /> <br> line chart using the gLineChart class.
<p>
<em>code:</em><br>
<code>
$lineChart = new gLineChart(300,300);<br>
$lineChart->addDataSet(array(112,315,66,40));<br>
$lineChart->addDataSet(array(212,115,366,140));<br>
$lineChart->addDataSet(array(112,95,116,140));<br>
$lineChart->setLegend(array("first", "second", "third","fourth"));<br>
$lineChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));<br>
$lineChart->setVisibleAxes(array('x','y'));<br>
$lineChart->setDataRange(30,400);<br>
$lineChart->addAxisLabel(0, array("This", "axis", "has", "labels!"));<br>
$lineChart->addAxisRange(1, 30, 400);<br>
$lineChart->setStripFill('bg',0,array('CCCCCC',0.15,'FFFFFF',0.1);<br>
</code>
</p>
<h2>Line Chart with Line Fill</h2>
<?php
$lineChart = new gLineChart(300,300);
$lineChart->addDataSet(array(112,125,66,40));
$lineChart->setLegend(array("first"));
$lineChart->setColors(array("ff3344"));
$lineChart->setVisibleAxes(array('x','y'));
$lineChart->setDataRange(30,130);
$lineChart->addAxisRange(0, 1, 4, 1);
$lineChart->addAxisRange(1, 30, 130);
$lineChart->addLineFill('B','76A4FB',0,0);
?>
<img src="<?php print $lineChart->getUrl(); ?>" /> <br> line chart using the gLineChart class.
<p>
<em>code:</em><br>
<code>
$lineChart = new gLineChart(300,300);<br>
$lineChart->addDataSet(array(112,125,66,40));<br>
$lineChart->setLegend(array("first"));<br>
$lineChart->setColors(array("ff3344"));<br>
$lineChart->setVisibleAxes(array('x','y'));<br>
$lineChart->setDataRange(30,130);<br>
$lineChart->addAxisRange(0, 1, 4, 1);<br>
$lineChart->addAxisRange(1, 30, 130);<br>
$lineChart->addLineFill('B','76A4FB',0,0);<br>
</code>
</p>
<h2>Line Chart with Grid Lines</h2>
<?php
$lineChart = new gLineChart(300,300);
$lineChart->addDataSet(array(112,315,66,40));
$lineChart->addDataSet(array(212,115,366,140));
$lineChart->addDataSet(array(112,95,116,140));
$lineChart->setLegend(array("first", "second", "third","fourth"));
$lineChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));
$lineChart->setVisibleAxes(array('x','y'));
$lineChart->setDataRange(0,400);
$lineChart->addAxisRange(0, 1, 4, 1);
$lineChart->addAxisRange(1, 0, 400);
$lineChart->setGridLines(33,10);
?>
<img src="<?php print $lineChart->getUrl(); ?>" /> <br> line chart using the gLineChart class.
<p>
<em>code:</em><br>
<code>
$lineChart = new gLineChart(300,300);<br>
$lineChart->addDataSet(array(112,315,66,40));<br>
$lineChart->addDataSet(array(212,115,366,140));<br>
$lineChart->addDataSet(array(112,95,116,140));<br>
$lineChart->setLegend(array("first", "second", "third","fourth"));<br>
$lineChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));<br>
$lineChart->setVisibleAxes(array('x','y'));<br>
$lineChart->setDataRange(0,400);<br>
$lineChart->addAxisRange(0, 1, 4, 1);<br>
$lineChart->addAxisRange(1, 0, 400);<br>
$lineChart->setGridLines(33,10);<br>
</code>
</p>
<h2>Grouped Bar Chart</h2>
<?php
$barChart = new gBarChart(500,150,'g');
$barChart->addDataSet(array(112,315,66,40));
$barChart->addDataSet(array(212,115,366,140));
$barChart->addDataSet(array(112,95,116,140));
$barChart->setColors(array("ff3344", "11ff11", "22aacc"));
$barChart->setLegend(array("first", "second", "third"));
$barChart->setGradientFill('c',0,array('FFE7C6',0,'76A4FB',1));
$barChart->setAutoBarWidth();
?>
<img src="<?php print $barChart->getUrl(); ?>" /> <br> grouped bar chart using the gGroupedBarChart class.
<p>
<em>code:</em><br>
<code>
$barChart = new gBarChart(500,150,'g');<br>
$barChart->addDataSet(array(112,315,66,40));<br>
$barChart->addDataSet(array(212,115,366,140));<br>
$barChart->addDataSet(array(112,95,116,140));<br>
$barChart->setColors(array("ff3344", "11ff11", "22aacc"));<br>
$barChart->setLegend(array("first", "second", "third"));<br>
$barChart->setGradientFill('c',0,array('FFE7C6',0,'76A4FB',1));<br>
$barChart->setAutoBarWidth();<br>
</code>
</p>
<h2>Horizontal Grouped Bar Chart</h2>
<?php
$barChart = new gBarChart(150,500,'g','h');
$barChart->addDataSet(array(112,315,66,40));
$barChart->addDataSet(array(212,115,366,140));
$barChart->addDataSet(array(112,95,116,140));
$barChart->setColors(array("ff3344", "11ff11", "22aacc"));
$barChart->setLegend(array("first", "second", "third"));
$barChart->setGradientFill('c',0,array('FFE7C6',0,'76A4FB',1));
$barChart->setLegend(array("This", "is", "different"));
?>
<img src="<?php print $barChart->getUrl(); ?>" /> <br> horizontal grouped bar chart using the gGroupedBarChart class.
<p>
<em>code:</em><br>
<code>
$barChart = new gBarChart(150,500,'g','h');<br>
$barChart->addDataSet(array(112,315,66,40));<br>
$barChart->addDataSet(array(212,115,366,140));<br>
$barChart->addDataSet(array(112,95,116,140));<br>
$barChart->setColors(array("ff3344", "11ff11", "22aacc"));<br>
$barChart->setLegend(array("first", "second", "third"));<br>
$barChart->setGradientFill('c',0,array('FFE7C6',0,'76A4FB',1));<br>
$barChart->setLegend(array("This", "is", "different"));<br>
</code>
</p>
<h2>Stacked Bar Chart</h2>
<?php
$barChart = new gStackedBarChart(450,350);
$barChart->addDataSet(array(112,315,66,40));
$barChart->addDataSet(array(212,115,366,140));
$barChart->addDataSet(array(112,95,116,140));
$barChart->setLegend(array("first", "second", "third","fourth"));
$barChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));
$barChart->setTitle("A multiline\r\nA Title");
?>
<img src="<?php print $barChart->getUrl(); ?>" /> <br> stacked bar chart using the gStackedBarChart class.
<p>
<em>code:</em><br>
<code>
$barChart = new gStackedBarChart(450,350);<br>
$barChart->addDataSet(array(112,315,66,40));<br>
$barChart->addDataSet(array(212,115,366,140));<br>
$barChart->addDataSet(array(112,95,116,140));<br>
$barChart->setLegend(array("first", "second", "third","fourth"));<br>
$barChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));<br>
$barChart->setTitle("A multiline\r\nA Title");<br>
</code>
</p>
<h2>Horizontal Stacked Bar Chart</h2>
<?php
$barChart->setHorizontal(true);
$barChart->groupSpacerWidth = 10;
?>
<img src="<?php print $barChart->getUrl(); ?>" /> <br> horizontal stacked bar chart using the gStackedBarChart class.
<p>
<em>code:</em><br>
<code>
$barChart->setHorizontal(true);<br>
$barChart->groupSpacerWidth = 10;
</code>
</p>
<h2>Funnel Bar Chart</h2>
<?php
$funnelChart = new gFunnelChart(800,230);
$funnelChart->addData(array(100, 75, 44, 42, 29, 3));
$funnelChart->setColors(array("ffffff", "FF9900"));
$funnelChart->setVisibleAxes(array('x','y'));
$funnelChart->addAxisRange(0, 0, 100, 10);
$funnelChart->addAxisLabel(0, array("0%", "10%", "20%", "30%","40%", "50%", "60%", "70%","80%", "90%", "100%"));
$funnelChart->addAxisLabel(1, array("Step6", "Step5", "Step4", "Step3", "Step2", "Step1"));
$funnelChart->addValueMarkers('N%2a%2a%','000000',1,-1,11,'','c');
?>
<img src="<?php print $funnelChart->getUrl(); ?>" /> <br> stacked bar chart using the gStackedBarChart class.
<p>
<em>code:</em><br>
<code>
$funnelChart = new gFunnelChart(800,230);<br>
$funnelChart->addData(array(100, 75, 44, 42, 29, 3));<br>
$funnelChart->setColors(array("ffffff", "FF9900"));<br>
$funnelChart->setVisibleAxes(array('x','y'));<br>
$funnelChart->addAxisRange(0, 0, 100, 10);<br>
$funnelChart->addAxisLabel(0, array("0%", "10%", "20%", "30%","40%", "50%", "60%", "70%","80%", "90%", "100%"));<br>
$funnelChart->addAxisLabel(1, array("Step6", "Step5", "Step4", "Step3", "Step2", "Step1"));<br>
$funnelChart->addValueMarkers('N%2a%2a%','000000',1,-1,11,'','c');<br>
</code>
</p>
<h2>Venn Diagram</h2>
<?php
$vennDiagram = new gVennDiagram();
$vennDiagram->setSizes(1120,3150);
$vennDiagram->setIntersections(220, 320);
$vennDiagram->setEncodingType('s');
$vennDiagram->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));
?>
<img src="<?php print $vennDiagram->getUrl(); ?>" /> <br> venn diagram using the gVennDiagram class.
<p>
<em>code:</em><br>
<code>
$vennDiagram = new gVennDiagram();<br>
$vennDiagram->setSizes(1120,3150);<br>
$vennDiagram->setIntersections(220, 320);<br>
$vennDiagram->setEncodingType('s');<br>
$vennDiagram->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));<br>
</code>
</p>
<h2>Venn Diagram</h2>
<?php
$vennDiagram = new gVennDiagram();
$vennDiagram->setSizes(20, 20, 20);
$vennDiagram->setIntersections(0, 4, 6, 2);
$vennDiagram->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));
?>
<img src="<?php print $vennDiagram->getUrl(); ?>" /> <br> venn diagram using the gVennDiagram class.
<p>
<em>code:</em><br>
<code>
$vennDiagram = new gVennDiagram();<br>
$vennDiagram->setSizes(10, 10, 10);<br>
$vennDiagram->setIntersections(2, 2, 2, 1);<br>
$vennDiagram->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));<br>
</code>
</p>
<h2>Latex Formula</h2>
<?php
$latex = new gFormula();
$latex -> setLatexCode('\cos(x)^2+\sin(x)^2=1');
?>
<img src="<?php print $latex->getUrl(); ?>" /> <br> latex formula using the gFormula class.
<p>
<em>code:</em><br>
<code>
$latex = new gFormula();<br>
$latex -> setLatexCode('\cos(x)^2+\sin(x)^2=1');<br>
</code>
</p>
<h2>QR Code</h2>
<?php
$qr = new gQRCode();
$qr -> setQRCode('gChartPhp is awesome!');
?>
<img src="<?php print $qr->getUrl(); ?>" /> <br> QR Code using the gQRCode class.
<p>
<em>code:</em><br>
<code>
$qr = new gQRCode();<br>
$qr -> setQRCode('gChartPhp is awesome!');<br>
</code>
</p>
<h2>Google-o-Meter</h2>
<?php
$meter = new gMeterChart();
$meter -> addDataSet(array(10, 50, 90));
$meter -> setColors(array('FFFFFF','000000'));
?>
<img src="<?php print $meter->getUrl(); ?>" /> <br> Goole-o-Meter Chart using the gMeterChart class.
<p>
<em>code:</em><br>
<code>
$meter = new gMeterChart();<br>
$meter -> addDataSet(array(10, 50, 90));<br>
$meter -> setColors('FFFFFF','000000');<br>
</code>
</p>
<h2>Map Chart</h2>
<?php
$map = new gMapChart();
$map -> setZoomArea('usa');
$map -> setStateCodes(array('CA', 'TX', 'NY', 'UT', 'NV'));
$map -> addDataSet(array(23, 32, 12, 54, 23));
$map -> setColors('342544', array('BE3481','34BE12'));
?>
<img src="<?php print $map->getUrl(); ?>" /> <br> Map Chart using the gMapChart class.
<p>
<em>code:</em><br>
<code>
$map = new gMapChart();<br>
$map -> setZoomArea('usa');<br>
$map -> setStateCodes(array('CA', 'TX', 'NY', 'UT', 'NV'));<br>
$map -> addDataSet(array(23, 32, 12, 54, 23));<br>
$map -> setColors('342544', array('BE3481','34BE12'));<br>
</code>
</p>
<h2>Scatter Chart</h2>
<?php
$scatter = new gScatterChart();
$scatter -> addDataSet(array(12,87,75,41,23,96,68,71,34,9));
$scatter -> addDataSet(array(98,60,27,34,56,79,58,74,18,76));
$scatter -> addValueMarkers('d','FF0000',0,-1,15);
$scatter -> setVisibleAxes(array('x','y'));
$scatter -> addAxisRange(0, 0, 100);
$scatter -> addAxisRange(1, 0, 100);
?>
<img src="<?php print $scatter->getUrl(); ?>" /> <br> Map Chart using the gMapChart class.
<p>
<em>code:</em><br>
<code>
$scatter = new gScatterChart();<br>
$scatter -> addDataSet(array(12,87,75,41,23,96,68,71,34,9));<br>
$scatter -> addDataSet(array(98,60,27,34,56,79,58,74,18,76));<br>
$scatter -> addValueMarkers('d','FF0000',0,-1,15);<br>
$scatter -> setVisibleAxes(array('x','y'));<br>
$scatter -> addAxisRange(0, 0, 100);<br>
$scatter -> addAxisRange(1, 0, 100);<br>
</code>
</p>
<h2>Grouped Bar Chart</h2>
<?php
$barChart = new gBarChart(250,250,'s');
$barChart->addDataSet(array(0,10,20,30,20,70,80));
$barChart->addDataSet(array(0,20,10,5,20,30,10));
$barChart->addHiddenDataSet(array(10,0,20,15,60,40,30));
$barChart->addValueMarkers('D','76A4FB',2,0,3);
$barChart->setAutoBarWidth();
?>
<img src="<?php print $barChart->getUrl(); ?>" /> <br> compound bar chart using the gGroupedBarChart class and addValueMarkers().
<p>
<em>code:</em><br>
<code>
$barChart = new gBarChart(250,250,'s');<br>
$barChart->addDataSet(array(0,10,20,30,20,70,80));<br>
$barChart->addDataSet(array(0,20,10,5,20,30,10));<br>
$barChart->addHiddenDataSet(array(10,0,20,15,60,40,30));<br>
$barChart->addValueMarkers('D','76A4FB',2,0,3);<br>
$barChart->setAutoBarWidth();<br>
</code>
</p>
<h2>Candlestick Chart</h2>
<?php
$candlestick = new gLineChart(200,125);
$candlestick -> addDataSet(array(90,80,70,50,40,30,20,10));
$candlestick -> addHiddenDataSet(array(0,5,10,0,5,10,0));
$candlestick -> addHiddenDataSet(array(2,15,20,5,15,40,0));
$candlestick -> addHiddenDataSet(array(5,35,20,2,35,20,0));
$candlestick -> addHiddenDataSet(array(15,40,30,15,40,50,0));
$candlestick -> addValueMarkers('F','000000',1,'1:-2',20);
$candlestick -> setVisibleAxes(array('y'));
$candlestick -> addAxisRange(0, 0, 100);
?>
<img src="<?php print $candlestick->getUrl(); ?>" /> <br> compound bar chart using the gGroupedBarChart class and addValueMarkers().
<p>
<em>code:</em><br>
<code>
$candlestick = new gLineChart(200,125);<br>
$candlestick -> addDataSet(array(90,80,70,50,40,30,20,10));<br>
$candlestick -> addHiddenDataSet(array(0,5,10,0,5,10,0));<br>
$candlestick -> addHiddenDataSet(array(2,15,20,5,15,40,0));<br>
$candlestick -> addHiddenDataSet(array(5,35,20,2,35,20,0));<br>
$candlestick -> addHiddenDataSet(array(15,40,30,15,40,50,0));<br>
$candlestick -> addValueMarkers('F','000000',1,'1:-2',20);<br>
$candlestick -> setVisibleAxes(array('y'));<br>
$candlestick -> addAxisRange(0, 0, 100);<br>
</code>
</p>
</body>
</html>