Configuration properties are set in the chart constructor. Some of them are mandatory, others - optional.
var lineChart = new dhtmlXChart({
view:"line",
container:"chart",
value:"#sales#"
})
container - the id of the
HTML container where you want display a chart
-
value - a property of dataset that chart represents
look and fill
item - a Line chart point
borderColor - the outer color of a point
borderWidth - the width of border line (by default, 2)
color - the inner color of a point
radius - the item radius (by default, 4)
type - the shape of items markers
-
color - the line color
width - the line width
padding - an object that defines padding of chart content:
chart details
label - a template for item labels
tooltip - a template for item tooltips
legend - a template for element text in legend block
width - the block width
align - the horizontal alignment of the block: “left”, “right” or “center”
valign - the vertical alignment 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
toggle - enables/disables the possibility to hide/show a graph by clicking on the graph legend item
values - the legend items
scales
xAxis - the horizontal scale
yAxis - the vertical scale
title - the scale title
color - the scale color
start - the mininum value
end - the maximum value
step - the scale step
template - a template for scale labels
lines - enables/disables horizontal lines for scale units
data manipulation
group - groups data by a certain property
-