Package de.yanwittmann.j2chartjs.options
Class ChartOptions
java.lang.Object
de.yanwittmann.j2chartjs.options.AbstractChartOption
de.yanwittmann.j2chartjs.options.ChartOptions
For an overview of all configuration values, see the documentation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPropertyAnimation(AnimationPropertyOption key, PropertyAnimationOption animation)addScale(String key, LinearScaleOption linearScaleOption)Default keys for scales are: x yaddScale(String key, RadialScaleOption radialScaleOption)Default keys for scales are: raddTransition(TransitionAnimationType key, TransitionAnimationOption transitions)setAnimationsActive(boolean active)setAspectRatio(Double aspectRatio)setChartAnimation(ChartAnimationOption animation)setDevicePixelRatio(Integer devicePixelRatio)setInteraction(InteractionOption interaction)setLayout(LayoutOption layout)setLegend(LegendOption legend)setMaintainAspectRatio(Boolean maintainAspectRatio)setOption(AbstractChartOption option)setResizeDelay(Integer resizeDelay)setResponsive(Boolean responsive)setSubtitle(AbstractChartOption subtitle)setTitle(TitleOption title)setTooltip(TooltipOption tooltip)org.json.JSONObjecttoJson()
-
Constructor Details
-
ChartOptions
public ChartOptions()
-
-
Method Details
-
setInteraction
-
setLayout
-
setLegend
-
setTitle
-
setSubtitle
-
setTooltip
-
setChartAnimation
-
addPropertyAnimation
public ChartOptions addPropertyAnimation(AnimationPropertyOption key, PropertyAnimationOption animation) -
addTransition
public ChartOptions addTransition(TransitionAnimationType key, TransitionAnimationOption transitions) -
addScale
Default keys for scales are:- x
- y
- Parameters:
key- The key to use to store the scale.linearScaleOption- The linear scale options to use for the key.- Returns:
- This instance to allow for API chaining.
-
addScale
Default keys for scales are:- r
- Parameters:
key- The key to use to store the scale.radialScaleOption- The radial scale options to use for the key.- Returns:
- This instance to allow for API chaining.
-
clearScales
-
setOption
-
setAnimationsActive
-
setResponsive
-
setMaintainAspectRatio
-
setAspectRatio
-
setResizeDelay
-
setDevicePixelRatio
-
setLocale
-
toJson
public org.json.JSONObject toJson()- Specified by:
toJsonin classAbstractChartOption
-