Package be.ceau.chart.options
Class Legend
java.lang.Object
be.ceau.chart.options.Legend
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetDisplay
(Boolean display) Defaulttrue
Is the legend displayedsetFullWidth
(Boolean fullWidth) Defaulttrue
Marks that this box should take the full width of the canvas (pushing down other boxes)setLabels
(LegendLabels labels) Default-
See the Legend Label Configuration section below.setOnClick
(JavaScriptFunction onClick) Defaultfunction(event, legendItem) {}
A callback that is called when a click is registered on top of a label itemsetPosition
(Legend.Position position) Default'top'
Position of the legend.
-
Constructor Details
-
Legend
public Legend()
-
-
Method Details
-
getDisplay
- See Also:
-
setDisplay
Defaulttrue
Is the legend displayed -
getPosition
- See Also:
-
setPosition
Default'top'
Position of the legend. Options are 'top' or 'bottom' -
getFullWidth
- See Also:
-
setFullWidth
Defaulttrue
Marks that this box should take the full width of the canvas (pushing down other boxes) -
getOnClick
- See Also:
-
setOnClick
Defaultfunction(event, legendItem) {}
A callback that is called when a click is registered on top of a label item -
getLabels
- See Also:
-
setLabels
Default-
See the Legend Label Configuration section below.
-