public final class DefaultChartOptions extends AbstractDefaultOptions implements IsDefaultScaledOptions
Constructor and Description |
---|
DefaultChartOptions(ChartEnvelop<ExtendedOptions> envelop)
Creates the default by an extended options instance, which represents the whole options of a chart.
|
DefaultChartOptions(ChartOptions chartOptions)
Creates the default by a chart options instance, which represents the global options of a chart.
|
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.
|
IsDefaultScales |
getScales()
Returns the scale/axis defaults.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAspectRatio, getBackgroundColorAsString, getBorderColorAsString, getCircumference, getColorAsString, getCutout, getCutoutPercentage, getDatasets, getDecimation, getDevicePixelRatio, getElements, getEvents, getFiller, getFont, getHover, getIndexAxis, getInteraction, getLayout, getLegend, getLocale, getPlugins, getRadius, getRadiusPercentage, getResizeDelay, getRotation, getSubtitle, getTitle, getTooltips, isDestroyOnDetach, isDrawOnAttach, isMaintainAspectRatio, isResponsive, isShowLine, isSkipNull, isSpanGaps
getTransitions
getAnimation, getAnimations
public DefaultChartOptions(ChartEnvelop<ExtendedOptions> envelop)
envelop
- contains the whole chart options instance.public DefaultChartOptions(ChartOptions chartOptions)
chartOptions
- global chart options instance.public IsDefaultScales getScales()
IsDefaultScaledOptions
getScales
in interface IsDefaultScaledOptions
public Set<Event> getEvents()
IsDefaultOptions
public CLocale getLocale()
IsDefaultOptions
public final boolean isResponsive()
IsDefaultOptions
public final boolean isMaintainAspectRatio()
IsDefaultOptions
public final double getAspectRatio()
IsDefaultOptions
public double getResizeDelay()
IsDefaultOptions
public final double getDevicePixelRatio()
IsDefaultOptions
public final String getColorAsString()
IsDefaultOptions
public String getBackgroundColorAsString()
IsDefaultOptions
public String getBorderColorAsString()
IsDefaultOptions
public final boolean isShowLine()
IsDefaultOptions
public final 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 final double getRotation()
IsDefaultOptions
public final double getCircumference()
IsDefaultOptions
public final 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 final 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 final boolean isSkipNull()
IsDefaultOptions
public final IndexAxis getIndexAxis()
IsDefaultOptions