Configuration properties are set in the chart constructor. Some of them are mandatory, others - optional.
var lineChart = new dhx.ui({
view:"chart",
type:"line",
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
item - specifies the points of the chart
line - specifies the chart's line
padding - an object that defines padding of chart content
chart details
label - a template for item labels
legend - a template for element text in legend block
scales
origin - the scale's origin (for vertical charts)
xAxis - sets the horizontal scale of the chart
title - (string) the scale title
color - (string) the scale color
template - (template) the template for scale labels
lines - (boolean) enables/disables horizontal lines for scale units
yAxis - sets the vertical scale of the chart
title - (string) the scale title
color - (string) the scale color
start - (integer) the mininum value of the scale
end - (integer) the maximum value of the scale
step - (integer) the scale step
template - (template) the template for scale labels
lines - (boolean) enables/disables horizontal lines for scale units
data manipulation
group - groups data by the defined property
sort - defines sorting settings