Configuration properties are set in the chart constructor. Some of them are mandatory, others - optional.
var pieChart = new dhtmlXChart({
view:"pie",
container:"chart_container",
value:"#sales#"
})
container - the id of html container where you want display a chart
-
value - a property of dataset that chart represent
look and fill
color - defines the colors of chart items
-
-
x - a horizontal position of a piechart center
y - a vertical position of a piechart center
Pie personality
shadow - enables/disables pie shadow
3D Pie personality
cant - a value from 0 to 1 that defines a chart cant (0.5 by default)
-
item details
label - a template for item labels
tooltip - a template for item tooltips
legend - a template for element text in legend block
width - a block width
align - an horizontal align of the block: “left”, “right” or “center”
valign - a vertical align of the block: “top”,“bottom” or “middle”
layout - a layout that defines text stretching in horizontal or vertical direction :“x” or “y”
marker - an object that defines markers in the details block
-
data manipulation
group - groups data by a certain property
-