Class SlicedChartImpl<T extends SlicedChart,M extends SlicedChartModelImpl>
- All Implemented Interfaces:
Chart<T>,SlicedChart<T>,HasStartEffect<T>,ChartModel<T>,SlicedChartModel<T>,HasColors<T>,HasMargins<T>,AttachNotifier,Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon,Component.HasXmlDescriptor,Component.Wrapper,HasContextHelp,HasDebugId,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
FunnelChartImpl,PieChartImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.charts.component.Chart
Chart.AbstractChartClickEvent, Chart.AbstractChartEvent, Chart.AbstractClickEvent, Chart.AbstractCursorEvent, Chart.AbstractGraphItemClickEvent, Chart.AbstractItemEvent, Chart.AbstractSliceClickEvent, Chart.AxisZoomEvent, Chart.ChartClickEvent, Chart.ChartRightClickEvent, Chart.CursorPeriodSelectEvent, Chart.CursorZoomEvent, Chart.GraphClickEvent, Chart.GraphItemClickEvent, Chart.GraphItemRightClickEvent, Chart.LegendItemClickEvent, Chart.LegendItemEvent, Chart.LegendItemHideEvent, Chart.LegendItemShowEvent, Chart.LegendMarkerClickEvent, Chart.RollOutGraphEvent, Chart.RollOutGraphItemEvent, Chart.RollOverGraphEvent, Chart.RollOverGraphItemEvent, Chart.SliceClickEvent, Chart.SlicePullInEvent, Chart.SlicePullOutEvent, Chart.SliceRightClickEvent, Chart.ZoomEventNested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SliceClickListenerprotected SlicePullInListenerprotected SlicePullOutListenerprotected SliceRightClickListenerFields inherited from class io.jmix.charts.component.impl.ChartImpl
chartLocaleHelper, clickHandler, currentAuthentication, formatStringsRegistry, legendItemHideHandler, legendItemShowHandler, legendLabelClickHandler, legendMarkerClickHandler, messages, rightClickHandlerFields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds colors.addGradientRatio(Double... ratios) Adds gradient ratios.addSliceClickListener(Consumer<Chart.SliceClickEvent> listener) Adds a listener for a slice.addSlicePullInListener(Consumer<Chart.SlicePullInEvent> listener) Adds a listener for a slice.Adds a listener for a slice.Adds a listener for a slice.getAlpha()protected voidprotected voidprotected voidprotected voidsetAccessibleLabel(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 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.component.impl.ChartImpl
addAdditionalFields, addClickListener, addData, addLabels, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addRightClickListener, addTitles, afterPropertiesSet, createChartConfiguration, createChartSerializer, createComponent, 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, getModel, getNativeJson, getPanEventsEnabled, getPath, getPathToImages, getPercentPrecision, getPrecision, getPrefixesOfBigNumbers, getPrefixesOfSmallNumbers, getProcessCount, getProcessTimeout, getResponsive, getSvgIcons, getTapToActivate, getTheme, getThousandsSeparator, getTitles, getTouchClickDuration, getUsePrefixes, initLocale, onChartClick, onChartRightClick, onLegendItemHide, onLegendItemShow, onLegendLabelClick, onLegendMarkerClick, repaint, setAccessible, setAccessibleDescription, setAccessibleTitle, setAddClassNames, setAdditionalFields, setAllLabels, setAutoDisplay, setAutoResize, setAutoTransform, setBackgroundAlpha, setBackgroundColor, setBalloon, setBorderAlpha, setBorderColor, setChartLocaleHelper, setClassNamePrefix, setColor, setCreditsPosition, setCurrentAuthentication, setDataProvider, setDecimalSeparator, setDefs, setExport, setFontFamily, setFontSize, setFormatStringsRegistry, setHandDrawn, setHandDrawScatter, setHandDrawThickness, setHideBalloonTime, setLanguage, setLegend, setMessages, setNativeJson, setPanEventsEnabled, setPath, setPathToImages, setPercentPrecision, setPrecision, setPrefixesOfBigNumbers, setPrefixesOfSmallNumbers, setProcessCount, setProcessTimeout, setResponsive, setSvgIcons, setTapToActivate, setTheme, setThousandsSeparator, setTitles, setTouchClickDuration, setupChartLocale, setupDefaults, setUsePrefixesMethods inherited from class io.jmix.ui.component.impl.AbstractComponent
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.charts.component.Chart
addClickListener, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addRightClickListener, getDataProvider, getNativeJson, repaint, setDataProvider, setNativeJsonMethods 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, 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, 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 interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSet
-
Field Details
-
sliceClickHandler
-
sliceRightClickHandler
-
slicePullInHandler
-
slicePullOutHandler
-
-
Constructor Details
-
SlicedChartImpl
public SlicedChartImpl()
-
-
Method Details
-
getAlpha
- Specified by:
getAlphain interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
alpha- opacity of all slices- Returns:
- sliced chart model
-
getAlphaField
- Specified by:
getAlphaFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
alphaField- alpha field string- Returns:
- sliced chart model
-
getBaseColor
- Specified by:
getBaseColorin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
baseColor- color of the first slice- Returns:
- sliced chart model
-
getColorField
- Specified by:
getColorFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
colorField- color field string- Returns:
- sliced chart model
-
getColors
- Specified by:
getColorsin interfaceHasColors<T extends SlicedChart>- 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 SlicedChart>- Parameters:
list- list of colors- Returns:
- chart
-
addColors
Description copied from interface:HasColorsAdds colors.- Specified by:
addColorsin interfaceHasColors<T extends SlicedChart>- Parameters:
colors- list of colors- Returns:
- chart
-
getDescriptionField
- Specified by:
getDescriptionFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
descriptionField- description field string- Returns:
- sliced chart model
-
getGradientRatio
- Specified by:
getGradientRatioin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
gradientRatio- list of gradient ratio- Returns:
- sliced chart model
-
addGradientRatio
Description copied from interface:SlicedChartModelAdds gradient ratios.- Specified by:
addGradientRatioin interfaceSlicedChartModel<T extends SlicedChart>- Parameters:
ratios- the ratios- Returns:
- sliced chart model
-
getGroupedAlpha
- Specified by:
getGroupedAlphain interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
groupedAlpha- opacity of the group slice- Returns:
- sliced chart model
-
getGroupedColor
- Specified by:
getGroupedColorin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
groupedColor- grouped color- Returns:
- sliced chart model
-
getGroupedDescription
- Specified by:
getGroupedDescriptionin interfaceSlicedChartModel<T extends SlicedChart>- Returns:
- grouped description
-
setGroupedDescription
Description copied from interface:SlicedChartModelSets description of the group slice.- Specified by:
setGroupedDescriptionin interfaceSlicedChartModel<T extends SlicedChart>- Parameters:
groupedDescription- grouped description string- Returns:
- sliced chart model
-
getGroupedPulled
- Specified by:
getGroupedPulledin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
groupedPulled- grouped pulled option- Returns:
- sliced chart model
-
getGroupedTitle
- Specified by:
getGroupedTitlein interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
groupedTitle- grouped title string- Returns:
- sliced chart model
-
getGroupPercent
- Specified by:
getGroupPercentin interfaceSlicedChartModel<T extends SlicedChart>
-
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 SlicedChart>- Parameters:
groupPercent- the group percent- Returns:
- sliced chart model
-
getHideLabelsPercent
- Specified by:
getHideLabelsPercentin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
hideLabelsPercent- the hide labels percent- Returns:
- sliced chart model
-
getHoverAlpha
- Specified by:
getHoverAlphain interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
hoverAlpha- opacity of a hovered slice- Returns:
- sliced chart model
-
getLabelsEnabled
- Specified by:
getLabelsEnabledin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
labelsEnabled- labels enabled option- Returns:
- sliced chart model
-
getLabelTickAlpha
- Specified by:
getLabelTickAlphain interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
labelTickAlpha- label tick opacity- Returns:
- sliced chart model
-
getLabelTickColor
- Specified by:
getLabelTickColorin interfaceSlicedChartModel<T extends SlicedChart>- Returns:
labeltick color
-
setLabelTickColor
Description copied from interface:SlicedChartModelSetslabeltick color. If not set the default value is #000000.- Specified by:
setLabelTickColorin interfaceSlicedChartModel<T extends SlicedChart>- Parameters:
labelTickColor- label tick color- Returns:
- sliced chart model
-
getMarginBottom
- Specified by:
getMarginBottomin interfaceHasMargins<T extends SlicedChart>- 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 SlicedChart>- Parameters:
marginBottom- bottom spacing- Returns:
- object with set bottom spacing
-
getMarginLeft
- Specified by:
getMarginLeftin interfaceHasMargins<T extends SlicedChart>- 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 SlicedChart>- Parameters:
marginLeft- left-hand spacing- Returns:
- object with set left-hand spacing
-
getMarginRight
- Specified by:
getMarginRightin interfaceHasMargins<T extends SlicedChart>- 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 SlicedChart>- Parameters:
marginRight- right-hand spacing- Returns:
- object with set right-hand spacing
-
getMarginTop
- Specified by:
getMarginTopin interfaceHasMargins<T extends SlicedChart>- 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 SlicedChart>- Parameters:
marginTop- top spacing- Returns:
- object with set top spacing
-
getOutlineAlpha
- Specified by:
getOutlineAlphain interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
outlineAlpha- outline opacity- Returns:
- sliced chart model
-
getOutlineColor
- Specified by:
getOutlineColorin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
outlineColor- the outline color- Returns:
- sliced chart model
-
getOutlineThickness
- Specified by:
getOutlineThicknessin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
outlineThickness- the outline thickness- Returns:
- sliced chart model
-
getPatternField
- Specified by:
getPatternFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
patternField- pattern field string- Returns:
- sliced chart model
-
getPulledField
- Specified by:
getPulledFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
pulledField- pulled field string- Returns:
- sliced chart model
-
getPullOutDuration
- Specified by:
getPullOutDurationin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
pullOutDuration- pull out duration in seconds- Returns:
- sliced chart model
-
getPullOutEffect
- Specified by:
getPullOutEffectin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
pullOutEffect- the pull out effect- Returns:
- sliced chart model
-
getPullOutOnlyOne
- Specified by:
getPullOutOnlyOnein interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
pullOutOnlyOne- pull out only one option- Returns:
- sliced chart model
-
getSequencedAnimation
- Specified by:
getSequencedAnimationin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
sequencedAnimation- sequenced animation option- Returns:
- sliced chart model
-
getStartAlpha
- Specified by:
getStartAlphain interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
startAlpha- initial opacity of all slices- Returns:
- sliced chart model
-
getStartDuration
- Specified by:
getStartDurationin interfaceHasStartEffect<T extends SlicedChart>- 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 SlicedChart>- Parameters:
startDuration- the start duration- Returns:
- object with set duration of the animation
-
getStartEffect
- Specified by:
getStartEffectin interfaceHasStartEffect<T extends SlicedChart>- 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 SlicedChart>- Parameters:
startEffect- the start effect- Returns:
- object with set animation effect
-
getTitleField
- Specified by:
getTitleFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
titleField- title field string- Returns:
- sliced chart model
-
getUrlField
- Specified by:
getUrlFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
urlField- the URL field string- Returns:
- sliced chart model
-
getUrlTarget
- Specified by:
getUrlTargetin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
urlTarget- the URL target string- Returns:
- sliced chart model
-
getValueField
- Specified by:
getValueFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
valueField- value field string- Returns:
- sliced chart model
-
getVisibleInLegendField
- Specified by:
getVisibleInLegendFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
visibleInLegendField- visible in legend field string- Returns:
- sliced chart model
-
getLabelFunction
- Specified by:
getLabelFunctionin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
labelFunction- label function- Returns:
- sliced chart model
-
getMaxLabelWidth
- Specified by:
getMaxLabelWidthin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
maxLabelWidth- maximum label width- Returns:
- sliced chart model
-
getClassNameField
- Specified by:
getClassNameFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
classNameField- class name field string- Returns:
- sliced chart model
-
getShowZeroSlices
- Specified by:
getShowZeroSlicesin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
showZeroSlices- show zero slices option- Returns:
- sliced chart model
-
getAccessibleLabel
- Specified by:
getAccessibleLabelin interfaceSlicedChartModel<T extends SlicedChart>- 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 ifSlicedChartModelImpl.tabIndexis 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 SlicedChart>- Parameters:
accessibleLabel- accessible label text- Returns:
- sliced chart model
-
getLabelColorField
- Specified by:
getLabelColorFieldin interfaceSlicedChartModel<T extends SlicedChart>- 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 SlicedChart>- Parameters:
labelColorField- label color field string- Returns:
- sliced chart model
-
getTabIndex
- Specified by:
getTabIndexin interfaceSlicedChartModel<T extends SlicedChart>- 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 usingSlicedChartModelImpl.accessibleLabel. Note, not all browsers and readers support this.- Specified by:
setTabIndexin interfaceSlicedChartModel<T extends SlicedChart>- Parameters:
tabIndex- the tab index- Returns:
- sliced chart model
-
addSliceClickListener
Description copied from interface:SlicedChartAdds a listener for a slice. Called when user clicks on the slice.- Specified by:
addSliceClickListenerin interfaceSlicedChart<T extends SlicedChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onSliceClick
-
addSliceRightClickListener
Description copied from interface:SlicedChartAdds a listener for a slice. Called when user clicks on the slice.- Specified by:
addSliceRightClickListenerin interfaceSlicedChart<T extends SlicedChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onSliceRightClick
-
addSlicePullInListener
Description copied from interface:SlicedChartAdds a listener for a slice. Called when the slice did pull-in.- Specified by:
addSlicePullInListenerin interfaceSlicedChart<T extends SlicedChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onSlicePullIn
-
addSlicePullOutListener
Description copied from interface:SlicedChartAdds a listener for a slice. Called when the slice did pull-out.- Specified by:
addSlicePullOutListenerin interfaceSlicedChart<T extends SlicedChart>- Parameters:
listener- a listener to add- Returns:
- subscription
-
onSlicePullOut
-