public final class DefaultChartOptions extends AbstractDefaultOptions implements IsDefaultScaledOptions
Constructor and Description |
---|
DefaultChartOptions(ChartOptions chartOptions)
Creates the object by options element instance.
|
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 |
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 |
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, getTitle, getTooltips
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnimation, getElements, getHover, getLayout, getLegend, getTitle, getTooltips
public DefaultChartOptions(ChartOptions chartOptions)
chartOptions
- chart options instance.public IsDefaultScale getScale()
IsDefaultScaledOptions
getScale
in interface IsDefaultScaledOptions
public IsDefaultScales getScales()
IsDefaultScaledOptions
getScales
in interface IsDefaultScaledOptions
public boolean isResponsive()
IsDefaultOptions
isResponsive
in interface IsDefaultOptions
public int getResponsiveAnimationDuration()
IsDefaultOptions
getResponsiveAnimationDuration
in interface IsDefaultOptions
public boolean isMaintainAspectRatio()
IsDefaultOptions
isMaintainAspectRatio
in interface IsDefaultOptions
public double getAspectRatio()
IsDefaultOptions
getAspectRatio
in interface IsDefaultOptions
public double getDevicePixelRatio()
IsDefaultOptions
getDevicePixelRatio
in interface IsDefaultOptions
public String getDefaultColorAsString()
IsDefaultOptions
getDefaultColorAsString
in interface IsDefaultOptions
public String getDefaultFontColorAsString()
IsDefaultOptions
getDefaultFontColorAsString
in interface IsDefaultOptions
public int getDefaultFontSize()
IsDefaultOptions
getDefaultFontSize
in interface IsDefaultOptions
public FontStyle getDefaultFontStyle()
IsDefaultOptions
getDefaultFontStyle
in interface IsDefaultOptions
public String getDefaultFontFamily()
IsDefaultOptions
getDefaultFontFamily
in interface IsDefaultOptions
public boolean isShowLines()
IsDefaultOptions
isShowLines
in interface IsDefaultOptions
public boolean isSpanGaps()
IsDefaultOptions
isSpanGaps
in interface IsDefaultOptions
public double getCutoutPercentage()
IsDefaultOptions
getCutoutPercentage
in interface IsDefaultOptions
public double getRotation()
IsDefaultOptions
getRotation
in interface IsDefaultOptions
public double getCircumference()
IsDefaultOptions
getCircumference
in interface IsDefaultOptions
public double getStartAngle()
IsDefaultOptions
getStartAngle
in interface IsDefaultOptions