public final class Defaults extends Object
defaults
object that CHART.JS (by CHART object) provides to get defaults values.Modifier and Type | Method and Description |
---|---|
static Defaults |
get()
Singleton method to get static instance.
|
Controllers |
getControllers()
Returns the controllers.
|
GlobalOptions |
getGlobal()
Returns the global options.
|
ChartOptions |
getOptions(Type type)
Returns the default options by a chart type, by defaults of CHART.JS.
|
GlobalPlugins |
getPlugins()
Returns the global plugins manager.
|
GlobalScale |
getScale()
Returns the global scale.
|
GlobalScale |
getScale(AxisType axisType)
Returns the global scale by axis type.
|
void |
updateScale(AxisType axisType)
Update the global scale by axis type.
|
public static Defaults get()
public GlobalOptions getGlobal()
public GlobalScale getScale()
public GlobalScale getScale(AxisType axisType)
axisType
- the axis type to use to get defaults.public void updateScale(AxisType axisType)
axisType
- the axis type to use to set defaults.public GlobalPlugins getPlugins()
public Controllers getControllers()
public ChartOptions getOptions(Type type)
type
- chart type.