Class ChartOptions
java.lang.Object
org.apache.syncope.client.console.chartjs.ChartOptions
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BarChartOptions
,LineChartOptions
,PieChartOptions
Provides some basic options, that are available for all kinds of charts.
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the animation.Gets the animation easing.Gets the animation steps.Gets the javascript function that fires on animation complete.String[]
boolean
Tests whether this chart is responsive or not.void
setAnimation
(Boolean animation) Sets the animation.void
setAnimationEasing
(String animationEasing) Sets the animation easing.void
setAnimationSteps
(Integer animationSteps) Sets the animation steps.void
setCustomTooltips
(String customTooltips) void
setMaintainAspectRatio
(Boolean maintainAspectRatio) void
setMultiTooltipTemplate
(String multiTooltipTemplate) void
setOnAnimationComplete
(String onAnimationComplete) Sets the onAnimationComplete javascript function.void
setOnAnimationProgress
(String onAnimationProgress) void
setResponsive
(boolean responsive) Sets the responsive option for this chart.void
setResponsive
(Boolean responsive) void
setScales
(ChartOptions.Scales scales) void
setShowTooltips
(Boolean showTooltips) void
setTooltipCaretSize
(Integer tooltipCaretSize) void
setTooltipCornerRadius
(Integer tooltipCornerRadius) void
setTooltipEvents
(String[] tooltipEvents) void
setTooltipFillColor
(String tooltipFillColor) void
setTooltipFontColor
(String tooltipFontColor) void
setTooltipFontFamily
(String tooltipFontFamily) void
setTooltipFontSize
(Integer tooltipFontSize) void
setTooltipFontStyle
(String tooltipFontStyle) void
setTooltipTemplate
(String tooltipTemplate) void
setTooltipTitleFontColor
(String tooltipTitleFontColor) void
setTooltipTitleFontFamily
(String tooltipTitleFontFamily) void
setTooltipTitleFontSize
(Integer tooltipTitleFontSize) void
setTooltipTitleFontStyle
(String tooltipTitleFontStyle) void
setTooltipXOffset
(Integer tooltipXOffset) void
setTooltipXPadding
(Integer tooltipXPadding) void
setTooltipYPadding
(Integer tooltipYPadding)
-
Constructor Details
-
Method Details
-
getCustomTooltips
-
setCustomTooltips
-
getAnimation
Gets the animation.- Returns:
- the animation
-
setAnimation
Sets the animation.- Parameters:
animation
- decides whether to animate the chart (default is true)
-
getAnimationSteps
Gets the animation steps.- Returns:
- the animation steps
-
setAnimationSteps
Sets the animation steps.- Parameters:
animationSteps
- the number of animation steps (default is 60)
-
getAnimationEasing
Gets the animation easing.- Returns:
- the animation easing
-
setAnimationEasing
Sets the animation easing.- Parameters:
animationEasing
- the animation easing effect (default is "easeOutQuart")
-
getOnAnimationComplete
Gets the javascript function that fires on animation complete.- Returns:
- the onAnimationComplete javascript function
-
setOnAnimationComplete
Sets the onAnimationComplete javascript function.- Parameters:
onAnimationComplete
- a function, that fires when the animation is complete
-
getResponsive
-
setResponsive
-
getMaintainAspectRatio
-
setMaintainAspectRatio
-
getShowTooltips
-
setShowTooltips
-
getTooltipEvents
-
setTooltipEvents
-
getTooltipFillColor
-
setTooltipFillColor
-
getTooltipFontFamily
-
setTooltipFontFamily
-
getTooltipFontSize
-
setTooltipFontSize
-
getTooltipFontStyle
-
setTooltipFontStyle
-
getTooltipFontColor
-
setTooltipFontColor
-
getTooltipTitleFontFamily
-
setTooltipTitleFontFamily
-
getTooltipTitleFontSize
-
setTooltipTitleFontSize
-
getTooltipTitleFontStyle
-
setTooltipTitleFontStyle
-
getTooltipTitleFontColor
-
setTooltipTitleFontColor
-
getTooltipYPadding
-
setTooltipYPadding
-
getTooltipXPadding
-
setTooltipXPadding
-
getTooltipCaretSize
-
setTooltipCaretSize
-
getTooltipCornerRadius
-
setTooltipCornerRadius
-
getTooltipXOffset
-
setTooltipXOffset
-
getTooltipTemplate
-
setTooltipTemplate
-
getMultiTooltipTemplate
-
setMultiTooltipTemplate
-
getOnAnimationProgress
-
setOnAnimationProgress
-
isResponsive
public boolean isResponsive()Tests whether this chart is responsive or not.- Returns:
- true if its responsive, false otherwise.
-
setResponsive
public void setResponsive(boolean responsive) Sets the responsive option for this chart.- Parameters:
responsive
- the responsive option value.
-
getScales
-
setScales
-