public class PieDataset extends HovingDataset
Constructor and Description |
---|
PieDataset()
Creates a dataset.
It uses the global options has default. |
PieDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.
|
Modifier and Type | Method and Description |
---|---|
default BorderAlign |
getBorderAlign()
Returns the property to set the border alignment on chart datasets.
|
default BorderAlignCallback |
getBorderAlignCallback()
Returns the border align callback, if set, otherwise
null . |
BorderAligner |
getBorderAligner()
Returns a border align manager instance.
|
double |
getWeight()
Returns the relative thickness of the dataset.
Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values. |
default void |
setBorderAlign(BorderAlign align)
Sets the property to set the border alignment on chart datasets.
|
default void |
setBorderAlign(BorderAlignCallback borderAlignCallback)
Sets the border align callback.
|
void |
setWeight(double weight)
Sets the relative thickness of the dataset.
Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values. |
applyGradient, applyPattern, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBackgroundColorCallback, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getHoverBorderColorCallback, getHoverBorderWidth, getHoverBorderWidthCallback, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidth
getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPatterns, getBackgroundColorAsString, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBorderColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBorderWidth
getBackgroundColorCallback, getBorderColorCallback, getBorderWidthCallback, getData, getData, getDataset, getDataType, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getDefaultValues, getId, getLabel, getOptions, getType, hasOptions, isHidden, setBackgroundColor, setBorderColor, setBorderWidth, setData, setData, setHidden, setLabel, setOptions, setType
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public PieDataset()
public PieDataset(IsDefaultOptions defaultValues)
defaultValues
- default optionspublic final BorderAligner getBorderAligner()
public void setWeight(double weight)
weight
- the relative thickness of the datasetpublic double getWeight()
public void setBorderAlign(BorderAlign align)
align
- the property to set the border alignment on chart datasetspublic BorderAlign getBorderAlign()
public BorderAlignCallback getBorderAlignCallback()
null
.null
.public void setBorderAlign(BorderAlignCallback borderAlignCallback)
borderAlignCallback
- the border align callback to set