Class SlicedChartModelImpl<T extends SlicedChartModelImpl>
- All Implemented Interfaces:
HasStartEffect<T>,ChartModel<T>,SlicedChartModel<T>,HasColors<T>,HasMargins<T>,Serializable
- Direct Known Subclasses:
FunnelChartModelImpl,PieChartModelImpl
http://docs.amcharts.com/3/javascriptcharts/AmSlicedChart
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.charts.model.chart.impl.AbstractChart
AbstractChart.DataProviderChangeListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds colors.addGradientRatio(Double... ratios) Adds gradient ratios.getAlpha()setAccessibleLabel(String accessibleLabel) Sets accessible label text.Sets opacity of all slices.setAlphaField(String alphaField) Sets alpha field name from data provider which holds slice's alpha.setBaseColor(Color baseColor) Sets color of the first slice.setClassNameField(String classNameField) Sets field name from your data provider which holds CSS class name.setColorField(String colorField) Sets name of the field from data provider which holds slice's color.Sets the list of colors.setDescriptionField(String descriptionField) Sets name of the field from data provider which holds a string with description.setGradientRatio(List<Double> gradientRatio) Sets the list of gradient ratio.setGroupedAlpha(Double groupedAlpha) Sets opacity of the group slice.setGroupedColor(Color groupedColor) Sets the color of the group slice.setGroupedDescription(String groupedDescription) Sets description of the group slice.setGroupedPulled(Boolean groupedPulled) If groupedPulled set to true, the group slice will be pulled out when the chart loads.setGroupedTitle(String groupedTitle) Sets title of the group slice.setGroupPercent(Double groupPercent) Sets group percent.setHideLabelsPercent(Double hideLabelsPercent) Sets hide labels percent.setHoverAlpha(Double hoverAlpha) Sets opacity of a hovered slice.setLabelColorField(Color labelColorField) Sets a field from your data provider which holds color value for the tick.setLabelFunction(JsFunction labelFunction) Sets label function that can format data labels in any way you want.setLabelsEnabled(Boolean labelsEnabled) Set labelsEnabled to true if data labels should be visible.setLabelTickAlpha(Double labelTickAlpha) Setslabeltick opacity.setLabelTickColor(Color labelTickColor) Setslabeltick color.setMarginBottom(Integer marginBottom) Sets bottom spacing.setMarginLeft(Integer marginLeft) Sets left-hand spacing.setMarginRight(Integer marginRight) Sets right-hand spacing.setMarginTop(Integer marginTop) Sets top spacing.setMaxLabelWidth(Integer maxLabelWidth) Sets maximum label width.setOutlineAlpha(Double outlineAlpha) Sets outline opacity.setOutlineColor(Color outlineColor) Sets outline color.setOutlineThickness(Integer outlineThickness) Sets pie outline thickness.setPatternField(String patternField) Sets field name from your data provider which holds pattern information.setPulledField(String pulledField) Sets name of the field in chart's data provider which holds a boolean value telling the chart whether this slice must be pulled or not.setPullOutDuration(Integer pullOutDuration) Sets pull out duration in seconds.setPullOutEffect(AnimationEffect pullOutEffect) Sets pull out effect.setPullOutOnlyOne(Boolean pullOutOnlyOne) If pullOutOnlyOne set to true, only one slice can be pulled out at a time.setSequencedAnimation(Boolean sequencedAnimation) Specifies whether the animation should be sequenced or all slices should appear at once.setShowZeroSlices(Boolean showZeroSlices) Set showZeroSlices to true if you want the chart should display outlines (if visible) and labels for slices even if their value is 0.setStartAlpha(Double startAlpha) Sets initial opacity of all slices.setStartDuration(Double startDuration) Sets duration of the animation, in seconds.setStartEffect(AnimationEffect startEffect) Sets animation effect.setTabIndex(Integer tabIndex) In case you set it to some number, the chart will set focus on a slice (starting from first) when user clicks tab key.setTitleField(String titleField) Sets name of the field from data provider which holds slice's title.setUrlField(String urlField) Sets name of the field from data provider which holds URL which would be accessed if the user clicks on a slice.setUrlTarget(String urlTarget) If URL is specified for a slice, it will be opened when user clicks on it.setValueField(String valueField) Sets name of the field from data provider which holds slice's value.setVisibleInLegendField(String visibleInLegendField) Use this field to selectively specify which slice is shown in legend.Methods inherited from class io.jmix.charts.model.chart.impl.AbstractChart
addAdditionalFields, addData, addDataProviderChangeListener, addLabels, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addTitles, fireDataProviderChanged, getAccessible, getAccessibleDescription, getAccessibleTitle, getAddClassNames, getAdditionalFields, getAllLabels, getAutoDisplay, getAutoResize, getAutoTransform, getBackgroundAlpha, getBackgroundColor, getBalloon, getBorderAlpha, getBorderColor, getClassNamePrefix, getColor, getCreditsPosition, getDataProvider, getDecimalSeparator, getDefs, getExport, getFontFamily, getFontSize, getHandDrawn, getHandDrawScatter, getHandDrawThickness, getHideBalloonTime, getLanguage, getLegend, getPanEventsEnabled, getPath, getPathToImages, getPercentPrecision, getPrecision, getPrefixesOfBigNumbers, getPrefixesOfSmallNumbers, getProcessCount, getProcessTimeout, getResponsive, getSvgIcons, getTapToActivate, getTheme, getThousandsSeparator, getTitles, getTouchClickDuration, getType, getUsePrefixes, removeDataProviderSetListener, setAccessible, setAccessibleDescription, setAccessibleTitle, setAddClassNames, setAdditionalFields, setAllLabels, setAutoDisplay, setAutoResize, setAutoTransform, setBackgroundAlpha, setBackgroundColor, setBalloon, setBorderAlpha, setBorderColor, setClassNamePrefix, setColor, setCreditsPosition, setDataProvider, setDecimalSeparator, setDefs, setExport, setFontFamily, setFontSize, setHandDrawn, setHandDrawScatter, setHandDrawThickness, setHideBalloonTime, setLanguage, setLegend, setPanEventsEnabled, setPath, setPathToImages, setPercentPrecision, setPrecision, setPrefixesOfBigNumbers, setPrefixesOfSmallNumbers, setProcessCount, setProcessTimeout, setResponsive, setSvgIcons, setTapToActivate, setTheme, setThousandsSeparator, setTitles, setTouchClickDuration, setUsePrefixesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.charts.model.chart.ChartModel
addAdditionalFields, addData, addLabels, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addTitles, getAccessible, getAccessibleDescription, getAccessibleTitle, getAddClassNames, getAdditionalFields, getAllLabels, getAutoDisplay, getAutoResize, getAutoTransform, getBackgroundAlpha, getBackgroundColor, getBalloon, getBorderAlpha, getBorderColor, getClassNamePrefix, getColor, getCreditsPosition, getDataProvider, getDecimalSeparator, getDefs, getExport, getFontFamily, getFontSize, getHandDrawn, getHandDrawScatter, getHandDrawThickness, getHideBalloonTime, getLanguage, getLegend, getPanEventsEnabled, getPath, getPathToImages, getPercentPrecision, getPrecision, getPrefixesOfBigNumbers, getPrefixesOfSmallNumbers, getProcessCount, getProcessTimeout, getResponsive, getSvgIcons, getTapToActivate, getTheme, getThousandsSeparator, getTitles, getTouchClickDuration, getUsePrefixes, setAccessible, setAccessibleDescription, setAccessibleTitle, setAddClassNames, setAdditionalFields, setAllLabels, setAutoDisplay, setAutoResize, setAutoTransform, setBackgroundAlpha, setBackgroundColor, setBalloon, setBorderAlpha, setBorderColor, setClassNamePrefix, setColor, setCreditsPosition, setDataProvider, setDecimalSeparator, setDefs, setExport, setFontFamily, setFontSize, setHandDrawn, setHandDrawScatter, setHandDrawThickness, setHideBalloonTime, setLanguage, setLegend, setPanEventsEnabled, setPath, setPathToImages, setPercentPrecision, setPrecision, setPrefixesOfBigNumbers, setPrefixesOfSmallNumbers, setProcessCount, setProcessTimeout, setResponsive, setSvgIcons, setTapToActivate, setTheme, setThousandsSeparator, setTitles, setTouchClickDuration, setUsePrefixes
-
Constructor Details
-
SlicedChartModelImpl
-
-
Method Details
-
getAlpha
- Specified by:
getAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- opacity of all slices
-
setAlpha
Description copied from interface:SlicedChartModelSets opacity of all slices. If not set the default value is 1.- Specified by:
setAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
alpha- opacity of all slices- Returns:
- sliced chart model
-
getAlphaField
- Specified by:
getAlphaFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- alpha field name
-
setAlphaField
Description copied from interface:SlicedChartModelSets alpha field name from data provider which holds slice's alpha.- Specified by:
setAlphaFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
alphaField- alpha field string- Returns:
- sliced chart model
-
getBaseColor
- Specified by:
getBaseColorin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- color of the first slice
-
setBaseColor
Description copied from interface:SlicedChartModelSets color of the first slice. All the other will be colored with darker or brighter colors. Use brightnessStep to set intensity of color change for each subsequent slice. If not set the default value is 20.- Specified by:
setBaseColorin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
baseColor- color of the first slice- Returns:
- sliced chart model
-
getColorField
- Specified by:
getColorFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- color field
-
setColorField
Description copied from interface:SlicedChartModelSets name of the field from data provider which holds slice's color.- Specified by:
setColorFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
colorField- color field string- Returns:
- sliced chart model
-
getColors
- Specified by:
getColorsin interfaceHasColors<T extends SlicedChartModelImpl>- Returns:
- List of colors
-
setColors
Description copied from interface:HasColorsSets the list of colors.If you use charts based on
SlicedChartModelImplit specifies the colors of the slices, if the slice color is not set. If there are more slices than colors in this array, the chart picks random color.If you use charts based on
CoordinateChartModelImplorStockChartModelit specifies the colors of the graphs if the lineColor of a graph is not set. If there are more graphs then colors in this array, the chart picks a random color. If not set the default value is["#FF6600", "#FCD202", "#B0DE09", "#0D8ECF", "#2A0CD0", "#CD0D74", "#CC0000", "#00CC00", "#0000CC", "#DDDDDD", "#999999", "#333333", "#990000"]If you use chart based on
SlicedChartModelImpl(PieChart, FunnelChart). Specifies the colors of the slices, if the slice color is not set. If there are more slices than colors in this array, the chart picks random color. If not set default value is["#FF0F00", "#FF6600", "#FF9E01", "#FCD202", "#F8FF01", "#B0DE09", "#04D215", "#0D8ECF", "#0D52D1", "#2A0CD0", "#8A0CCF", "#CD0D74", "#754DEB", "#DDDDDD", "#999999", "#333333", "#000000", "#57032A", "#CA9726", "#990000", "#4B0C25"]- Specified by:
setColorsin interfaceHasColors<T extends SlicedChartModelImpl>- Parameters:
colors- list of colors- Returns:
- chart
-
addColors
Description copied from interface:HasColorsAdds colors.- Specified by:
addColorsin interfaceHasColors<T extends SlicedChartModelImpl>- Parameters:
colors- list of colors- Returns:
- chart
-
getDescriptionField
- Specified by:
getDescriptionFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- description field
-
setDescriptionField
Description copied from interface:SlicedChartModelSets name of the field from data provider which holds a string with description.- Specified by:
setDescriptionFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
descriptionField- description field string- Returns:
- sliced chart model
-
getGradientRatio
- Specified by:
getGradientRatioin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- list of gradient ratio
-
setGradientRatio
Description copied from interface:SlicedChartModelSets the list of gradient ratio. Will make slices to be filled with color gradients. Negative value means the color will be darker than the original, and positive number means the color will be lighter.- Specified by:
setGradientRatioin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
gradientRatio- list of gradient ratio- Returns:
- sliced chart model
-
addGradientRatio
Description copied from interface:SlicedChartModelAdds gradient ratios.- Specified by:
addGradientRatioin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
ratios- the ratios- Returns:
- sliced chart model
-
getGroupedAlpha
- Specified by:
getGroupedAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- opacity of the group slice
-
setGroupedAlpha
Description copied from interface:SlicedChartModelSets opacity of the group slice. Value range is 0 - 1. If not set the default value is 1.- Specified by:
setGroupedAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
groupedAlpha- opacity of the group slice- Returns:
- sliced chart model
-
getGroupedColor
- Specified by:
getGroupedColorin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- grouped color
-
setGroupedColor
Description copied from interface:SlicedChartModelSets the color of the group slice. The default value is not set - this means the next available color from "colors" list will be used.- Specified by:
setGroupedColorin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
groupedColor- grouped color- Returns:
- sliced chart model
-
getGroupedDescription
- Specified by:
getGroupedDescriptionin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- grouped description
-
setGroupedDescription
Description copied from interface:SlicedChartModelSets description of the group slice.- Specified by:
setGroupedDescriptionin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
groupedDescription- grouped description string- Returns:
- sliced chart model
-
getGroupedPulled
- Specified by:
getGroupedPulledin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- true if grouped pulled is enabled
-
setGroupedPulled
Description copied from interface:SlicedChartModelIf groupedPulled set to true, the group slice will be pulled out when the chart loads. If not set the default value is false.- Specified by:
setGroupedPulledin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
groupedPulled- grouped pulled option- Returns:
- sliced chart model
-
getGroupedTitle
- Specified by:
getGroupedTitlein interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- grouped title
-
setGroupedTitle
Description copied from interface:SlicedChartModelSets title of the group slice. If not set the default value is "Other".- Specified by:
setGroupedTitlein interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
groupedTitle- grouped title string- Returns:
- sliced chart model
-
getGroupPercent
- Specified by:
getGroupPercentin interfaceSlicedChartModel<T extends SlicedChartModelImpl>
-
setGroupPercent
Description copied from interface:SlicedChartModelSets group percent. If there is more than one slice whose percentage of the pie is less than this number, those slices will be grouped together into one slice. This is the "other" slice. It will always be the last slice in a pie. If not set the default value is 0.- Specified by:
setGroupPercentin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
groupPercent- the group percent- Returns:
- sliced chart model
-
getHideLabelsPercent
- Specified by:
getHideLabelsPercentin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- hide labels percent
-
setHideLabelsPercent
Description copied from interface:SlicedChartModelSets hide labels percent. Slices with percent less then hideLabelsPercent won't display labels. This is useful to avoid cluttering up the chart, if you have a lot of small slices. 0 means all labels will be shown. If not set the default value is 0.- Specified by:
setHideLabelsPercentin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
hideLabelsPercent- the hide labels percent- Returns:
- sliced chart model
-
getHoverAlpha
- Specified by:
getHoverAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- opacity of a hovered slice
-
setHoverAlpha
Description copied from interface:SlicedChartModelSets opacity of a hovered slice. Value range is 0 - 1. If not set the default value is 1.- Specified by:
setHoverAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
hoverAlpha- opacity of a hovered slice- Returns:
- sliced chart model
-
getLabelsEnabled
- Specified by:
getLabelsEnabledin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- true if data labels are visible
-
setLabelsEnabled
Description copied from interface:SlicedChartModelSet labelsEnabled to true if data labels should be visible. If not set the default value is true.- Specified by:
setLabelsEnabledin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
labelsEnabled- labels enabled option- Returns:
- sliced chart model
-
getLabelTickAlpha
- Specified by:
getLabelTickAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
labeltick opacity
-
setLabelTickAlpha
Description copied from interface:SlicedChartModelSetslabeltick opacity. Value range is 0 - 1. If not set the default value is 0.2.- Specified by:
setLabelTickAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
labelTickAlpha- label tick opacity- Returns:
- sliced chart model
-
getLabelTickColor
- Specified by:
getLabelTickColorin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
labeltick color
-
setLabelTickColor
Description copied from interface:SlicedChartModelSetslabeltick color. If not set the default value is #000000.- Specified by:
setLabelTickColorin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
labelTickColor- label tick color- Returns:
- sliced chart model
-
getMarginBottom
- Specified by:
getMarginBottomin interfaceHasMargins<T extends SlicedChartModelImpl>- Returns:
- bottom spacing
-
setMarginBottom
Description copied from interface:HasMarginsSets bottom spacing. If not set the default value is 10.If is used for
Legenddefault value is 0.If is used for
RadarChartModelImplthe default value is 0.If is used for chart based on
RectangularChartModelImpl(GanttChart, SerialChart, XYChart) the default value is 20.If is used for chart based on
SlicedChartModelImpl(FunnelChart, PieChart) the default value is 10.If is used for
PanelsSettingsthe default value is 0.- Specified by:
setMarginBottomin interfaceHasMargins<T extends SlicedChartModelImpl>- Parameters:
marginBottom- bottom spacing- Returns:
- object with set bottom spacing
-
getMarginLeft
- Specified by:
getMarginLeftin interfaceHasMargins<T extends SlicedChartModelImpl>- Returns:
- left-hand spacing
-
setMarginLeft
Description copied from interface:HasMarginsSets left-hand spacing.marginLeft will be ignored if chart is
SerialChartorXYChartModelImplandAbstractLegend.autoMarginsis true.If is used for
Legendthe default value is 20.If is used for
RadarChartModelImplthe default value is 0.If is used for chart based on
RectangularChartModelImpl(GanttChart, SerialChart, XYChart) the default value is 20.If is used for chart based on
SlicedChartModelImplthe default value is 0.If is used for
PanelsSettingsthe default value is 0.- Specified by:
setMarginLeftin interfaceHasMargins<T extends SlicedChartModelImpl>- Parameters:
marginLeft- left-hand spacing- Returns:
- object with set left-hand spacing
-
getMarginRight
- Specified by:
getMarginRightin interfaceHasMargins<T extends SlicedChartModelImpl>- Returns:
- right-hand spacing
-
setMarginRight
Description copied from interface:HasMarginsSets right-hand spacing.marginRight will be ignored if chart is
SerialChartorXYChartModelImplandAbstractLegend.autoMarginsis true.If is used for
Legendthe default value is 20.If is used for
RadarChartModelImplthe default value is 0.If is used for chart based on
RectangularChartModelImpl(GanttChart, SerialChart, XYChart) the default value is 20.If is used for chart based on
SlicedChartModelImpl(FunnelChart, PieChart) the default value is 0.If is used for
PanelsSettingsthe default value is 0.- Specified by:
setMarginRightin interfaceHasMargins<T extends SlicedChartModelImpl>- Parameters:
marginRight- right-hand spacing- Returns:
- object with set right-hand spacing
-
getMarginTop
- Specified by:
getMarginTopin interfaceHasMargins<T extends SlicedChartModelImpl>- Returns:
- top spacing
-
setMarginTop
Description copied from interface:HasMarginsSets top spacing. If not set the default value is 10.If is used for
Legendthe default value is 0.If is used for
RadarChartModelImplthe default value is 0.If is used for chart based on
RectangularChartModelImpl(GanttChart, SerialChart, XYChart) the default value is 20.If is used for chart based on
SlicedChartModelImplthe default value is 10.If is used for
PanelsSettingsthe default value is 0.- Specified by:
setMarginTopin interfaceHasMargins<T extends SlicedChartModelImpl>- Parameters:
marginTop- top spacing- Returns:
- object with set top spacing
-
getOutlineAlpha
- Specified by:
getOutlineAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- outline opacity
-
setOutlineAlpha
Description copied from interface:SlicedChartModelSets outline opacity. Value range is 0 - 1. If not set the default value is 0.- Specified by:
setOutlineAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
outlineAlpha- outline opacity- Returns:
- sliced chart model
-
getOutlineColor
- Specified by:
getOutlineColorin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- outline color
-
setOutlineColor
Description copied from interface:SlicedChartModelSets outline color. If not set the default value is #FFFFFF.- Specified by:
setOutlineColorin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
outlineColor- the outline color- Returns:
- sliced chart model
-
getOutlineThickness
- Specified by:
getOutlineThicknessin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- outline thickness
-
setOutlineThickness
Description copied from interface:SlicedChartModelSets pie outline thickness. If not set the default value is 1.- Specified by:
setOutlineThicknessin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
outlineThickness- the outline thickness- Returns:
- sliced chart model
-
getPatternField
- Specified by:
getPatternFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- pattern field name
-
setPatternField
Description copied from interface:SlicedChartModelSets field name from your data provider which holds pattern information.- Specified by:
setPatternFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
patternField- pattern field string- Returns:
- sliced chart model
-
getPulledField
- Specified by:
getPulledFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- pulled field name
-
setPulledField
Description copied from interface:SlicedChartModelSets name of the field in chart's data provider which holds a boolean value telling the chart whether this slice must be pulled or not.- Specified by:
setPulledFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
pulledField- pulled field string- Returns:
- sliced chart model
-
getPullOutDuration
- Specified by:
getPullOutDurationin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- pull out duration in seconds
-
setPullOutDuration
Description copied from interface:SlicedChartModelSets pull out duration in seconds. If not set the default value is 1.- Specified by:
setPullOutDurationin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
pullOutDuration- pull out duration in seconds- Returns:
- sliced chart model
-
getPullOutEffect
- Specified by:
getPullOutEffectin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- pull out effect
-
setPullOutEffect
Description copied from interface:SlicedChartModelSets pull out effect. Possible values are: easeOutSine, easeInSine, elastic, bounce. If not set the default value is BOUNCE.- Specified by:
setPullOutEffectin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
pullOutEffect- the pull out effect- Returns:
- sliced chart model
-
getPullOutOnlyOne
- Specified by:
getPullOutOnlyOnein interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- true if only one slice can be pulled out at a time
-
setPullOutOnlyOne
Description copied from interface:SlicedChartModelIf pullOutOnlyOne set to true, only one slice can be pulled out at a time. If the viewer clicks on a slice, any other pulled-out slice will be pulled in. If not set the default value is false.- Specified by:
setPullOutOnlyOnein interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
pullOutOnlyOne- pull out only one option- Returns:
- sliced chart model
-
getSequencedAnimation
- Specified by:
getSequencedAnimationin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- true if the animation should be sequenced
-
setSequencedAnimation
Description copied from interface:SlicedChartModelSpecifies whether the animation should be sequenced or all slices should appear at once. If not set the default value is true.- Specified by:
setSequencedAnimationin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
sequencedAnimation- sequenced animation option- Returns:
- sliced chart model
-
getStartAlpha
- Specified by:
getStartAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- initial opacity of all slices
-
setStartAlpha
Description copied from interface:SlicedChartModelSets initial opacity of all slices. Slices will fade in from startAlpha. If not set the default value is 0.- Specified by:
setStartAlphain interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
startAlpha- initial opacity of all slices- Returns:
- sliced chart model
-
getStartDuration
- Specified by:
getStartDurationin interfaceHasStartEffect<T extends SlicedChartModelImpl>- Returns:
- duration of the animation, in seconds
-
setStartDuration
Description copied from interface:HasStartEffectSets duration of the animation, in seconds.If you use
AngularGaugeChartModelImpldefault value is 1.If you use charts based on
CoordinateChartModel(GanttChart, RadarChart, SerialChart, XYChart) default value is 0.If you use chart based on
SlicedChartModelImpldefault value is 1.- Specified by:
setStartDurationin interfaceHasStartEffect<T extends SlicedChartModelImpl>- Parameters:
startDuration- the start duration- Returns:
- object with set duration of the animation
-
getStartEffect
- Specified by:
getStartEffectin interfaceHasStartEffect<T extends SlicedChartModelImpl>- Returns:
- animation effect
-
setStartEffect
Description copied from interface:HasStartEffectSets animation effect.If you use
AngularGaugeChartModelImplanimation effect will be applied for the arrow. If not set the default value is EASE_IN_SINE.If you use charts based on
CoordinateChartModel(GanttChart, RadarChart, SerialChart, XYChart) default value is ELASTIC.If you use chart based on
SlicedChartModelImpldefault value is BOUNCE.- Specified by:
setStartEffectin interfaceHasStartEffect<T extends SlicedChartModelImpl>- Parameters:
startEffect- the start effect- Returns:
- object with set animation effect
-
getTitleField
- Specified by:
getTitleFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- title field name
-
setTitleField
Description copied from interface:SlicedChartModelSets name of the field from data provider which holds slice's title.- Specified by:
setTitleFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
titleField- title field string- Returns:
- sliced chart model
-
getUrlField
- Specified by:
getUrlFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- the URL field name
-
setUrlField
Description copied from interface:SlicedChartModelSets name of the field from data provider which holds URL which would be accessed if the user clicks on a slice.- Specified by:
setUrlFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
urlField- the URL field string- Returns:
- sliced chart model
-
getUrlTarget
- Specified by:
getUrlTargetin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- the URL target
-
setUrlTarget
Description copied from interface:SlicedChartModelIf URL is specified for a slice, it will be opened when user clicks on it. urlTarget specifies target of this URL. Use "_blank" if you want URL to be opened in a new window. If not set the default value is "_self".- Specified by:
setUrlTargetin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
urlTarget- the URL target string- Returns:
- sliced chart model
-
getValueField
- Specified by:
getValueFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- value field name
-
setValueField
Description copied from interface:SlicedChartModelSets name of the field from data provider which holds slice's value.- Specified by:
setValueFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
valueField- value field string- Returns:
- sliced chart model
-
getVisibleInLegendField
- Specified by:
getVisibleInLegendFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- visible in legend field
-
setVisibleInLegendField
Description copied from interface:SlicedChartModelUse this field to selectively specify which slice is shown in legend. It should be set to a boolean field in data (that holds either true or false). For example if you set visibleInLegendField to "showInLegend", all slices that have "showInLegend: false" in their data will not be shown in the legend.- Specified by:
setVisibleInLegendFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
visibleInLegendField- visible in legend field string- Returns:
- sliced chart model
-
getLabelFunction
- Specified by:
getLabelFunctionin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- label function
-
setLabelFunction
Description copied from interface:SlicedChartModelSets label function that can format data labels in any way you want. Chart will call this method and will pass Slice object and formatted text as attributes. This function should return string which will be displayed as label.- Specified by:
setLabelFunctionin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
labelFunction- label function- Returns:
- sliced chart model
-
getMaxLabelWidth
- Specified by:
getMaxLabelWidthin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- maximum label width
-
setMaxLabelWidth
Description copied from interface:SlicedChartModelSets maximum label width. If width of the label is bigger than maxLabelWidth, it will be wrapped. If not set the default value is 200.- Specified by:
setMaxLabelWidthin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
maxLabelWidth- maximum label width- Returns:
- sliced chart model
-
getClassNameField
- Specified by:
getClassNameFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- class name field
-
setClassNameField
Description copied from interface:SlicedChartModelSets field name from your data provider which holds CSS class name. If this field is set andAbstractChart.addClassNamesis enabled, the slice element will have this class name set.- Specified by:
setClassNameFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
classNameField- class name field string- Returns:
- sliced chart model
-
getShowZeroSlices
- Specified by:
getShowZeroSlicesin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- true if the chart displays outlines (if visible) and labels for slices even if their value is 0.
-
setShowZeroSlices
Description copied from interface:SlicedChartModelSet showZeroSlices to true if you want the chart should display outlines (if visible) and labels for slices even if their value is 0. If not set the default value is false.- Specified by:
setShowZeroSlicesin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
showZeroSlices- show zero slices option- Returns:
- sliced chart model
-
getAccessibleLabel
- Specified by:
getAccessibleLabelin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- accessible label text
-
setAccessibleLabel
Description copied from interface:SlicedChartModelSets accessible label text. It will be read by screen readers if user rolls-over the slice or sets focus using tab key (this is possible only iftabIndexis set to some number). Text is added as aria-label tag. Note, not all screen readers and browsers support this. If not set the default value is "[[title]]: [[percents]]% [[value]] [[description]]".- Specified by:
setAccessibleLabelin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
accessibleLabel- accessible label text- Returns:
- sliced chart model
-
getLabelColorField
- Specified by:
getLabelColorFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- label color field
-
setLabelColorField
Description copied from interface:SlicedChartModelSets a field from your data provider which holds color value for the tick. Use it to set color of the label for each slice individually. If not set the default value is #000000.- Specified by:
setLabelColorFieldin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
labelColorField- label color field string- Returns:
- sliced chart model
-
getTabIndex
- Specified by:
getTabIndexin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Returns:
- tab index
-
setTabIndex
Description copied from interface:SlicedChartModelIn case you set it to some number, the chart will set focus on a slice (starting from first) when user clicks tab key. When a focus is set, screen readers like NVDA Screen reader will read label which is set usingaccessibleLabel. Note, not all browsers and readers support this.- Specified by:
setTabIndexin interfaceSlicedChartModel<T extends SlicedChartModelImpl>- Parameters:
tabIndex- the tab index- Returns:
- sliced chart model
-
getWiredFields
- Overrides:
getWiredFieldsin classAbstractChart<T extends SlicedChartModelImpl>- Returns:
- fields of the
DataItemthat are bound to the chart
-