public class DefaultOptions extends AbstractDefaultOptions
| Modifier and Type | Method and Description |
|---|---|
double |
getAspectRatio()
Canvas aspect ratio (i.e.
|
String |
getBackgroundColorAsString()
Returns the default background color to use in the chart, on all objects, if not override by the specific configuration.
|
String |
getBorderColorAsString()
Returns the default border color to use in the chart, on all objects, if not override by the specific configuration.
|
double |
getCircumference()
Returns the the sweep to allow arcs to cover.
|
String |
getColorAsString()
Returns the default color to use in the chart, on all objects, if not override by the specific configuration.
|
double |
getCutout()
Returns the portion of the chart that is cut out of the middle.
As Double, it is considered to be pixels. |
String |
getCutoutPercentage()
Returns the portion of the chart that is cut out of the middle.
As String and ending with '%', percentage of the chart radius. |
double |
getDevicePixelRatio()
The chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g.
|
Set<Event> |
getEvents()
Returns the browser events that the chart should listen to.
|
IndexAxis |
getIndexAxis()
Returns the base axis for the dataset, only for bar options.
|
CLocale |
getLocale()
Returns the locale instance for internationalization.
|
double |
getRadius()
Returns the outer radius of the chart.
As Double, it is considered to be pixels. |
String |
getRadiusPercentage()
Returns the outer radius of the chart.
As String and ending with '%', percentage of the maximum radius. |
double |
getResizeDelay()
Returns the delay the resize update by give amount of milliseconds.
This can ease the resize process by debouncing update of the elements. |
double |
getRotation()
Returns the starting angle to draw arcs from.
|
boolean |
isDestroyOnDetach()
Returns
true if the chart is configured to be destroyed on the attach of DIV element, otherwise false. |
boolean |
isDrawOnAttach()
Returns
true if the chart is configured to be drawn on the attach of DIV element, otherwise false. |
boolean |
isMaintainAspectRatio()
Returns the the maintaining of the original canvas aspect ratio (width / height) when resizing.
|
boolean |
isResponsive()
Returns the resizing of the chart canvas when its container does.
|
boolean |
isShowLine()
If false, the lines between points are not drawn.
|
boolean |
isSkipNull()
If true, null or undefined values will not be drawn.
|
boolean |
isSpanGaps()
If false,
Double.NaN data causes a break in the line. |
getAnimation, getAnimations, getDatasets, getDecimation, getElements, getFiller, getFont, getHover, getInteraction, getLayout, getLegend, getPlugins, getSubtitle, getTitle, getTooltips, getTransitionspublic Set<Event> getEvents()
IsDefaultOptionspublic CLocale getLocale()
IsDefaultOptionspublic boolean isResponsive()
IsDefaultOptionspublic boolean isMaintainAspectRatio()
IsDefaultOptionspublic double getAspectRatio()
IsDefaultOptionspublic double getResizeDelay()
IsDefaultOptionspublic double getDevicePixelRatio()
IsDefaultOptionspublic String getColorAsString()
IsDefaultOptionspublic String getBackgroundColorAsString()
IsDefaultOptionspublic String getBorderColorAsString()
IsDefaultOptionspublic boolean isShowLine()
IsDefaultOptionspublic boolean isSpanGaps()
IsDefaultOptionsDouble.NaN data causes a break in the line.Double.NaN data causes a break in the line.public double getCutout()
IsDefaultOptionsDouble, it is considered to be pixels.Double, it is considered to be pixels.public String getCutoutPercentage()
IsDefaultOptionsString and ending with '%', percentage of the chart radius.String and ending with '%', percentage of the chart radius.public double getRadius()
IsDefaultOptionsDouble, it is considered to be pixels.Double, it is considered to be pixels.public String getRadiusPercentage()
IsDefaultOptionsString and ending with '%', percentage of the maximum radius.String and ending with '%', percentage of the maximum radius.public double getRotation()
IsDefaultOptionspublic double getCircumference()
IsDefaultOptionspublic boolean isDrawOnAttach()
IsDefaultOptionstrue if the chart is configured to be drawn on the attach of DIV element, otherwise false.true if the chart is configured to be drawn on the attach of DIV element, otherwise false.public boolean isDestroyOnDetach()
IsDefaultOptionstrue if the chart is configured to be destroyed on the attach of DIV element, otherwise false.true if the chart is configured to be destroyed on the attach of DIV element, otherwise false.public boolean isSkipNull()
IsDefaultOptionspublic IndexAxis getIndexAxis()
IsDefaultOptions