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, getTransitions
public Set<Event> getEvents()
IsDefaultOptions
public CLocale getLocale()
IsDefaultOptions
public boolean isResponsive()
IsDefaultOptions
public boolean isMaintainAspectRatio()
IsDefaultOptions
public double getAspectRatio()
IsDefaultOptions
public double getResizeDelay()
IsDefaultOptions
public double getDevicePixelRatio()
IsDefaultOptions
public String getColorAsString()
IsDefaultOptions
public String getBackgroundColorAsString()
IsDefaultOptions
public String getBorderColorAsString()
IsDefaultOptions
public boolean isShowLine()
IsDefaultOptions
public boolean isSpanGaps()
IsDefaultOptions
Double.NaN
data causes a break in the line.Double.NaN
data causes a break in the line.public double getCutout()
IsDefaultOptions
Double
, it is considered to be pixels.Double
, it is considered to be pixels.public String getCutoutPercentage()
IsDefaultOptions
String
and ending with '%', percentage of the chart radius.String
and ending with '%', percentage of the chart radius.public double getRadius()
IsDefaultOptions
Double
, it is considered to be pixels.Double
, it is considered to be pixels.public String getRadiusPercentage()
IsDefaultOptions
String
and ending with '%', percentage of the maximum radius.String
and ending with '%', percentage of the maximum radius.public double getRotation()
IsDefaultOptions
public double getCircumference()
IsDefaultOptions
public boolean isDrawOnAttach()
IsDefaultOptions
true
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()
IsDefaultOptions
true
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()
IsDefaultOptions
public IndexAxis getIndexAxis()
IsDefaultOptions