Configuration properties are set in the chart constructor. Some of them are mandatory, others - optional.
var pieChart = new dhx.ui({
view:"chart",
type:"pie",
container:"chart_container",
value:"#sales#"
})
container - the id of the html container where you'll place a chart
-
value - the data which chart represents
look and fill
color - defines the colors of chart's items
-
-
x - the horizontal position of pie's center
y - the vertical position of pie's center
Pie personality
shadow - enables/disables pie shadow
3D Pie personality
cant - a value from 0 to 1 that defines the slope angle of 3D pie (default value - 0.5)
-
item details
label - the template for items' labels
legend - specifies the legend block of the chart
-
data manipulation
group - groups data by the defined property
sort - defines sorting settings