public final class DefaultGlobalOptions extends AbstractDefaultOptions implements IsDefaultScaledOptions
| Constructor and Description |
|---|
DefaultGlobalOptions(GlobalOptions globalOptions)
Creates the object by global options and defaults scaled options
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAspectRatio()
Canvas aspect ratio (i.e.
|
double |
getCircumference()
Returns the the sweep to allow arcs to cover.
|
double |
getCutoutPercentage()
Returns the the percentage of the chart that is cut out of the middle.
|
String |
getDefaultColorAsString()
Returns the default color to use in the chart, on all objects, if not override by the specific configuration.
|
String |
getDefaultFontColorAsString()
Returns the default font color to use in the chart, on all objects, if not override by the specific configuration.
|
String |
getDefaultFontFamily()
Returns the font family to use in the chart, on all objects, if not override by the specific configuration, follows CSS font-family options.
|
int |
getDefaultFontSize()
Returns the font size to use in the chart, on all objects, if not override by the specific configuration.
|
FontStyle |
getDefaultFontStyle()
Returns the font style to use in the chart, on all objects, if not override by the specific configuration.
|
double |
getDefaultLineHeight()
Returns the height of an individual line of text.
|
double |
getDevicePixelRatio()
The chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g.
|
int |
getResponsiveAnimationDuration()
Returns the duration in milliseconds it takes to animate to new size after a resize event.
|
double |
getRotation()
Returns the starting angle to draw arcs from.
|
IsDefaultScale |
getScale()
Returns the scale/axis defaults.
|
IsDefaultScales |
getScales()
Returns the scale/axis defaults.
|
double |
getStartAngle()
Returns the starting angle to draw arcs for the first item in a dataset.
|
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 |
isShowLines()
If false, the lines between points are not drawn.
|
boolean |
isSpanGaps()
If false, NaN data causes a break in the line.
|
getAnimation, getElements, getHover, getLayout, getLegend, getPlugins, getTitle, getTooltipsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnimation, getAspectRatio, getCircumference, getCutoutPercentage, getDefaultColorAsString, getDefaultFontColorAsString, getDefaultFontFamily, getDefaultFontSize, getDefaultFontStyle, getDefaultLineHeight, getDevicePixelRatio, getElements, getHover, getLayout, getLegend, getPlugins, getResponsiveAnimationDuration, getRotation, getStartAngle, getTitle, getTooltips, isDestroyOnDetach, isDrawOnAttach, isMaintainAspectRatio, isResponsive, isShowLines, isSpanGapspublic DefaultGlobalOptions(GlobalOptions globalOptions)
globalOptions - global options instance used as default.public IsDefaultScale getScale()
IsDefaultScaledOptionsgetScale in interface IsDefaultScaledOptionspublic IsDefaultScales getScales()
IsDefaultScaledOptionsgetScales in interface IsDefaultScaledOptionspublic final boolean isResponsive()
IsDefaultOptionspublic final int getResponsiveAnimationDuration()
IsDefaultOptionspublic final boolean isMaintainAspectRatio()
IsDefaultOptionspublic final double getAspectRatio()
IsDefaultOptionspublic final double getDevicePixelRatio()
IsDefaultOptionspublic final String getDefaultColorAsString()
IsDefaultOptionspublic final String getDefaultFontColorAsString()
IsDefaultOptionspublic final int getDefaultFontSize()
IsDefaultOptionspublic final FontStyle getDefaultFontStyle()
IsDefaultOptionspublic final String getDefaultFontFamily()
IsDefaultOptionspublic final double getDefaultLineHeight()
IsDefaultOptionspublic final boolean isShowLines()
IsDefaultOptionspublic final boolean isSpanGaps()
IsDefaultOptionspublic final double getCutoutPercentage()
IsDefaultOptionspublic final double getRotation()
IsDefaultOptionspublic final double getCircumference()
IsDefaultOptionspublic final double getStartAngle()
IsDefaultOptionspublic final 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. Default is true.public final 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. Default is
true.