Class Legend
java.lang.Object
software.xdev.chartjs.model.options.Legend
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Boolean
protected Boolean
protected LegendLabels
protected JavaScriptFunction
protected Legend.Position
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetDisplay
(Boolean display) Defaulttrue
setFullWidth
(Boolean fullWidth) Defaulttrue
setLabels
(LegendLabels labels) Default-
setOnClick
(JavaScriptFunction onClick) Defaultfunction(event, legendItem) {}
setPosition
(Legend.Position position) Default'top'
-
Field Details
-
display
-
position
-
fullWidth
-
onClick
-
labels
-
-
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.
-