barChart

Print a bar chart graphic.

1
{{$barChart data="1,2,3,5,8,13,21"}}
Example
format JSON XML
Data JSON
1
2
3
4
5
{
"Product": {
"sales": "1,2,3,5,8,13,21"
}
}
HTML
1
{{$barChart data=Product.sales}}
Result
Data XML
1
2
<Product sales="1,2,3,5,8,13,21">
</Product>
HTML
1
{{$barChart data=Product._sales}}
Result

Params

Custom example

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
{{$barChart
data="1,2,3,5,8,13,21"
labelTexts="xx"
labelTextsRepeat=true
width=300
height=200
noX=false
noY=false
noXPoints=false
noYPoints=false
noXLine=false
noYLine=false
noXText=false
noYText=false
noXGrid=false
noYGrid=false
noPoint=false
noLabel=false
noLine=false
noArea=false
marginTop=30
marginRight=20
marginBottom=30
marginLeft=40
textFontFamily="arial, helvetica, sans"
xFontSize=9
xTextColor="grey"
xLineColor="#ccc"
xPointColor="grey"
yFontSize=9
yTextColor="grey"
yLineColor="#ccc"
yPointColor="grey"
yTotalLines=5
lineColor="#2583de"
lineWidth=1
pointFontColor="black"
pointFontSize=12
pointFontOffset=10
areaColor="#2583de"
areaOpacity=0.2
gridColor="grey"
gridOpacity=0.1
fit=false
barMaxWidth=10
}}

Result