chart-config
Object
default: {default settings}
mandatory: N/A
Object used to control behavior of chart, It has many options not all of them are mandatory but however one can use it to enhance the chart. If in any case the provided value does not match required type then default settings are used.
attribute
description
default
mandatory
label (String)
The label of the context under which chart will be drawn the x axis property
" "
yes
keys (String/Array)
Keys for bar value can be a single string(Single bar chart) or array of keys(Multiple bar chart)
" "
yes
color (Array)
Array of color to be used for paining bar chart, length should be equal or greater than keys
[ ]
no
margin (Object)
Object of properties left,right,top,bottom : All strictly a number value, to set margins useful in case of handling long labels
{left:35, right:80, top: 30, bottom: 50}
no
legends (String/Array)
It accepts values in similar fashion as keys legends are given preference over keys in labelling
" "
no
showTextOnBar (Boolean)
This will show value on top of bar if set to true
false
no
valueFormat (String)
".2s"
no
sort (Number [-1,0,1])
sort the single or multiple values in accumulated total 0=>NONE, 1=> ASC, -1=>DESC
0
no
gridLines (Boolean)
draws background gridlines if set to true
true
no
paddingLabelsGroup (Number)
The padding value between two groups labels
0.1
no
paddingBar (Number)
The padding value between two bar in same group
0.05
no