public class PieDataset extends HoverDataset
Dataset.CanvasObjectProperty, Dataset.CommonProperty
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
Modifier | Constructor and Description |
---|---|
|
PieDataset()
Creates a dataset.
It uses the global options has default. |
|
PieDataset(boolean hidden)
Creates a dataset.
It uses the global options has default. |
|
PieDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.
|
|
PieDataset(IsDefaultOptions defaultValues,
boolean hidden)
Creates the dataset using a default.
|
protected |
PieDataset(Type type,
boolean hidden)
Creates the dataset using chart type related to the dataset.
|
protected |
PieDataset(Type type,
IsDefaultOptions defaultValues,
boolean hidden)
Creates the dataset using a default and chart type related to the dataset.
|
Modifier and Type | Method and Description |
---|---|
default List<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 . |
org.pepstock.charba.client.data.BorderAlignHandler |
getBorderAlignHandler()
Returns a border align handler instance.
|
List<Integer> |
getBorderRadius()
Returns the list of arc border radius (in pixels).
If a callback has been set, returns an empty list. |
List<ArcBorderRadius> |
getBorderRadiusAsObjects()
Returns the list of bar border radius (in pixels).
If a callback or an array have been set, returns an empty object. |
BorderRadiusCallback |
getBorderRadiusCallback()
Returns the border radius callback, if set, otherwise
null . |
double |
getCircumference()
Returns the the sweep to allow arcs to cover.
|
List<Integer> |
getHoverOffset()
Returns the arc offset (in pixels), when dataset if hovered.
|
OffsetCallback<DatasetContext> |
getHoverOffsetCallback()
Returns the offset callback, when dataset is hovered, if set, otherwise
null . |
List<Integer> |
getOffset()
Returns the arc offset (in pixels).
|
OffsetCallback<DatasetContext> |
getOffsetCallback()
Returns the offset callback, if set, otherwise
null . |
double |
getRotation()
Returns the starting angle to draw arcs from.
|
int |
getSpacing()
Returns the fixed arc offset (in pixels).
Similar to offset but applies to all arcs. |
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.
|
default void |
setBorderAlign(List<BorderAlign> align)
Sets the property to set the border alignment on chart datasets.
|
default void |
setBorderAlign(NativeCallback borderAlignCallback)
Sets the border align callback.
|
void |
setBorderRadius(ArcBorderRadius... borderRadius)
Sets the arc border radius (in pixels).
|
void |
setBorderRadius(BorderRadiusCallback borderRadiusCallback)
Sets the border radius callback.
|
void |
setBorderRadius(int... borderRadius)
Sets the arc border radius (in pixels).
|
void |
setBorderRadius(List<ArcBorderRadius> borderRadius)
Sets the arc border radius (in pixels).
|
void |
setBorderRadius(NativeCallback borderRadiusCallback)
Sets the border radius callback.
|
void |
setCircumference(double circumference)
Sets the sweep to allow arcs to cover.
|
void |
setHoverOffset(int... offset)
Sets the arc offset (in pixels), when dataset if hovered.
|
void |
setHoverOffset(NativeCallback hoverOffsetCallback)
Sets the offset callback, when dataset is hovered.
|
void |
setHoverOffset(OffsetCallback<DatasetContext> hoverOffsetCallback)
Sets the offset callback, when dataset is hovered.
|
void |
setOffset(int... offset)
Sets the arc offset (in pixels).
|
void |
setOffset(NativeCallback offsetCallback)
Sets the offset callback.
|
void |
setOffset(OffsetCallback<DatasetContext> offsetCallback)
Sets the offset callback.
|
void |
setRotation(double rotation)
Sets the starting angle to draw arcs from.
|
void |
setSpacing(int spacing)
Sets the fixed arc offset (in pixels).
Similar to offset but applies to all arcs. |
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. |
getBorderWidthCallback, getColors, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getHoverBorderWidth, getHoverBorderWidthCallback, getWidths, setBorderWidth, setBorderWidth, setColors, setColors, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidth, setWidths
getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPatterns, getBackgroundColorAsString, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBorderColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBorderWidth
createContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, getData, getDataCount, getDataset, getDataType, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getDefaultHoverBackgroundColorAsString, getDefaultHoverBorderColorAsString, getDefaultHoverBorderWidth, getDefaultValues, getHoverBackgroundColorCallback, getHoverBorderColorCallback, getId, getLabel, getOptions, getOptions, getScope, getType, getTypedDataset, hasOptions, invokeColorCallback, isClip, isHidden, isNormalized, isParsing, removeOptions, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setClip, setClip, setClip, setData, setData, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setNormalized, setOptions, setOptions, setParsing
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
extractScope
public PieDataset()
public PieDataset(boolean hidden)
hidden
- if true
, it will be initially hidden.public PieDataset(IsDefaultOptions defaultValues)
defaultValues
- default optionspublic PieDataset(IsDefaultOptions defaultValues, boolean hidden)
defaultValues
- default optionshidden
- if true
, it will be initially hidden.protected PieDataset(Type type, boolean hidden)
type
- chart type related to the datasethidden
- if true
, it will be initially hidden.protected PieDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
type
- chart type related to the datasetdefaultValues
- default optionshidden
- if true
, it will be initially hidden.public final org.pepstock.charba.client.data.BorderAlignHandler getBorderAlignHandler()
public void setRotation(double rotation)
rotation
- starting angle to draw arcs from.public double getRotation()
public void setSpacing(int spacing)
offset
but applies to all arcs.spacing
- the fixed arc offset (in pixels)public int getSpacing()
offset
but applies to all arcs.public void setCircumference(double circumference)
circumference
- the sweep to allow arcs to cover.public double getCircumference()
public void setWeight(double weight)
weight
- the relative thickness of the datasetpublic double getWeight()
public void setOffset(int... offset)
offset
- the arc offsetpublic List<Integer> getOffset()
public void setHoverOffset(int... offset)
offset
- the arc offset, when dataset if hoveredpublic List<Integer> getHoverOffset()
public void setBorderRadius(int... borderRadius)
borderRadius
- the arc border radius (in pixels).public void setBorderRadius(ArcBorderRadius... borderRadius)
borderRadius
- the arc border radius (in pixels).public void setBorderRadius(List<ArcBorderRadius> borderRadius)
borderRadius
- the arc border radius (in pixels).public List<Integer> getBorderRadius()
public List<ArcBorderRadius> getBorderRadiusAsObjects()
public OffsetCallback<DatasetContext> getOffsetCallback()
null
.null
.public void setOffset(OffsetCallback<DatasetContext> offsetCallback)
offsetCallback
- the offset callback.public void setOffset(NativeCallback offsetCallback)
offsetCallback
- the offset callback.public OffsetCallback<DatasetContext> getHoverOffsetCallback()
null
.null
.public void setHoverOffset(OffsetCallback<DatasetContext> hoverOffsetCallback)
hoverOffsetCallback
- the offset callback, when dataset is hovered.public void setHoverOffset(NativeCallback hoverOffsetCallback)
hoverOffsetCallback
- the offset callback, when dataset is hovered.public BorderRadiusCallback getBorderRadiusCallback()
null
.null
.public void setBorderRadius(BorderRadiusCallback borderRadiusCallback)
borderRadiusCallback
- the border radius callback.public void setBorderRadius(NativeCallback borderRadiusCallback)
borderRadiusCallback
- the border radius callback.public void setBorderAlign(BorderAlign... align)
align
- the property to set the border alignment on chart datasetspublic void setBorderAlign(List<BorderAlign> align)
align
- the property to set the border alignment on chart datasetspublic List<BorderAlign> getBorderAlign()
public BorderAlignCallback getBorderAlignCallback()
null
.null
.public void setBorderAlign(BorderAlignCallback borderAlignCallback)
borderAlignCallback
- the border align callback to setpublic void setBorderAlign(NativeCallback borderAlignCallback)
borderAlignCallback
- the border align callback to set