Class Legend
java.lang.Object
software.xdev.chartjs.model.options.Legend
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Booleanprotected LegendLabelsprotected JavaScriptFunctionprotected Legend.Position -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetDisplay(Boolean display) DefaulttruesetFullWidth(Boolean fullWidth) DefaulttruesetLabels(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
DefaulttrueIs the legend displayed
-
getPosition
- See Also:
-
setPosition
Default'top'Position of the legend. Options are 'top' or 'bottom'
-
getFullWidth
- See Also:
-
setFullWidth
DefaulttrueMarks 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.
-