-
Notifications
You must be signed in to change notification settings - Fork 11
Legend
Yeray edited this page Mar 22, 2018
·
4 revisions
The indicator where series names and series points are displayed is called the Legend
.
Several properties can be used to customize the legend behaviour and appearance. Ie:
Chart1.legend.visible = true;
Chart1.legend.transparent = false;
Chart1.legend.format.fill = “yellow”;
Chart1.legend.position = “left”; // “top”, “bottom”, “right”
Chart1.legend.inverted = false; // draws items in normal order
Chart1.legend.legendStyle = “values”; // “auto”, “series”, “values”
Chart1.legend.textStyle = “percentlabel”; // show point value as percent, and point text label
Chart1.legend.format.font.style = “20px Arial”;
Chart1.legend.align = 0; // distance from chart edge, percentage from 0 to 100 ( 0 means automatic )
Chart1.legend.padding = 5; // distance from legend to axes in pixels
Chart1.legend.title.text = “My Legend”;
Chart1.legend.title.visible = true;
Chart1.legend.symbol.visible = true;
Chart1.legend.symbol.width = 20;
Chart1.legend.symbol.format.shadow.width = 5;
Chart1.legend.fontColor = true; // each item text is painted using its point or series color
Chart1.dividing.fill = “blue”; // draws lines between legend items
Elements
Chart formatting
Series
Other parts of the Chart
Chart behaviour