Package io.jmix.charts.model.chart
Interface SeriesBasedChartModel<T extends SeriesBasedChartModel>
- All Superinterfaces:
- ChartModel<T>,- CoordinateChartModel<T>,- HasColors<T>,- HasMargins<T>,- HasStartEffect<T>,- RectangularChartModel<T>
- All Known Subinterfaces:
- GanttChart,- GanttChartModel<T>,- SerialChart,- SeriesBasedChart<T>
- All Known Implementing Classes:
- AbstractSerialChart,- GanttChartImpl,- GanttChartModelImpl,- SerialChartImpl,- SerialChartModelImpl,- SeriesBasedChartImpl,- StockPanel
public interface SeriesBasedChartModel<T extends SeriesBasedChartModel>
extends RectangularChartModel<T>
- 
Method SummaryModifier and TypeMethodDescriptionsetBalloonDateFormat(String balloonDateFormat) Sets date format of the graph balloon (if chart parses dates and you don't useCursor).setCategoryAxis(CategoryAxis categoryAxis) Sets the category axis.setCategoryField(String categoryField) Sets the category field name.setColumnSpacing(Integer columnSpacing) Sets the gap in pixels between two columns of the same category.setColumnSpacing3D(Integer columnSpacing3D) Sets space between 3D stacked columns.setColumnWidth(Double columnWidth) Sets relative width of columns.setDataDateFormat(String dataDateFormat) Sets data date format.setMaxSelectedSeries(Integer maxSelectedSeries) Sets maximum number of series allowed to select.setMaxSelectedTime(Long maxSelectedTime) Sets the longest time span allowed to select in milliseconds for example, 259200000 will limit selection to 3 days.setMinSelectedTime(Long minSelectedTime) Sets the shortest time span allowed to select in milliseconds for example, 1000 will limit selection to 1 second.setMouseWheelScrollEnabled(Boolean mouseWheelScrollEnabled) Set true if you want scroll chart with the mouse wheel.setMouseWheelZoomEnabled(Boolean mouseWheelZoomEnabled) Set mouseWheelZoomEnabled to true if zooming of a chart with mouse wheel should be enabled.Set rotate to true, if the chart should be rotated by 90 degrees (the columns will become bars).setSynchronizeGrid(Boolean synchronizeGrid) Set synchronizeGrid property to true and the chart will adjust minimum and maximum of axes so that the grid would be show at equal intervals.setValueScrollbar(Scrollbar valueScrollbar) Sets value scrollbar, enables scrolling value axes.setZoomOutOnDataUpdate(Boolean zoomOutOnDataUpdate) Set zoomOutOnDataUpdate to true if chart should be zoom-out when data is updated.Methods inherited from interface io.jmix.charts.model.chart.ChartModeladdAdditionalFields, 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, setUsePrefixesMethods inherited from interface io.jmix.charts.model.chart.CoordinateChartModeladdGraphs, addGuides, addValueAxes, getGraphs, getGridAboveGraphs, getGuides, getSequencedAnimation, getStartAlpha, getUrlTarget, getValueAxes, setGraphs, setGridAboveGraphs, setGuides, setSequencedAnimation, setStartAlpha, setUrlTarget, setValueAxesMethods inherited from interface io.jmix.charts.model.HasMarginsgetMarginBottom, getMarginLeft, getMarginRight, getMarginTop, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopMethods inherited from interface io.jmix.charts.model.animation.HasStartEffectgetStartDuration, getStartEffect, setStartDuration, setStartEffectMethods inherited from interface io.jmix.charts.model.chart.RectangularChartModeladdTrendLines, getAngle, getAutoMarginOffset, getAutoMargins, getChartCursor, getChartScrollbar, getDepth3D, getMarginsUpdated, getMaxZoomFactor, getMinMarginBottom, getMinMarginLeft, getMinMarginRight, getMinMarginTop, getPlotAreaBorderAlpha, getPlotAreaBorderColor, getPlotAreaFillAlphas, getPlotAreaFillColors, getPlotAreaGradientAngle, getTrendLines, getZoomOutButtonAlpha, getZoomOutButtonColor, getZoomOutButtonImage, getZoomOutButtonImageSize, getZoomOutButtonPadding, getZoomOutButtonRollOverAlpha, getZoomOutButtonTabIndex, getZoomOutText, setAngle, setAutoMarginOffset, setAutoMargins, setChartCursor, setChartScrollbar, setDepth3D, setMarginsUpdated, setMaxZoomFactor, setMinMarginBottom, setMinMarginLeft, setMinMarginRight, setMinMarginTop, setPlotAreaBorderAlpha, setPlotAreaBorderColor, setPlotAreaFillAlphas, setPlotAreaFillColors, setPlotAreaGradientAngle, setTrendLines, setZoomOutButtonAlpha, setZoomOutButtonColor, setZoomOutButtonImage, setZoomOutButtonImageSize, setZoomOutButtonPadding, setZoomOutButtonRollOverAlpha, setZoomOutButtonTabIndex, setZoomOutText
- 
Method Details- 
getCategoryAxisCategoryAxis getCategoryAxis()- Returns:
- category axis
 
- 
setCategoryAxisSets the category axis.- Parameters:
- categoryAxis- the category axis
- Returns:
- chart model
 
- 
getCategoryFieldString getCategoryField()- Returns:
- category field name
 
- 
setCategoryFieldSets the category field name. It tells the chart the name of the field from your data provider object which will be used for category axis values.- Parameters:
- categoryField- category field name string
- Returns:
- chart model
 
- 
getBalloonDateFormatString getBalloonDateFormat()- Returns:
- balloon date format
 
- 
setBalloonDateFormatSets date format of the graph balloon (if chart parses dates and you don't useCursor). If not set the default value is "MMM DD, YYYY".- Parameters:
- balloonDateFormat- the balloon date format
- Returns:
- chart model
 
- 
getColumnSpacing3DInteger getColumnSpacing3D()- Returns:
- space between 3D stacked columns
 
- 
setColumnSpacing3DSets space between 3D stacked columns. If not set the default value is 0.- Parameters:
- columnSpacing3D- space between 3D stacked columns
- Returns:
- chart model
 
- 
getColumnSpacingInteger getColumnSpacing()- Returns:
- column spacing in pixels
 
- 
setColumnSpacingSets the gap in pixels between two columns of the same category. If not set the default value is 5.- Parameters:
- columnSpacing- column spacing in pixels
- Returns:
- chart model
 
- 
getColumnWidthDouble getColumnWidth()- Returns:
- relative width of columns
 
- 
setColumnWidthSets relative width of columns. Value range is 0 - 1. If not set the default value is 0.8.- Parameters:
- columnWidth- relative width of columns
- Returns:
- chart model
 
- 
getDataDateFormatString getDataDateFormat()- Returns:
- data date format
 
- 
setDataDateFormatSets data date format. Even if your chart parses dates, you can pass them as strings in your data – all you need to do is to set data date format and the chart will parse dates to date objects. Please note that two-digit years "YY" as well as literal month names "MMM" are NOT supported in this setting.- Parameters:
- dataDateFormat- data date format string
- Returns:
- chart model
 
- 
getMaxSelectedSeriesInteger getMaxSelectedSeries()- Returns:
- maximum number of selected series
 
- 
setMaxSelectedSeriesSets maximum number of series allowed to select.- Parameters:
- maxSelectedSeries- the maximum number of selected series
- Returns:
- chart model
 
- 
getMaxSelectedTimeLong getMaxSelectedTime()- Returns:
- maximum selected time in milliseconds
 
- 
setMaxSelectedTimeSets the longest time span allowed to select in milliseconds for example, 259200000 will limit selection to 3 days. Works ifCategoryAxis.equalSpacingis set to false.- Parameters:
- maxSelectedTime- the maximum selected time in milliseconds
- Returns:
- chart model
 
- 
getMinSelectedTimeLong getMinSelectedTime()- Returns:
- minimum selected time in milliseconds
 
- 
setMinSelectedTimeSets the shortest time span allowed to select in milliseconds for example, 1000 will limit selection to 1 second. Works ifCategoryAxis.equalSpacingis set to false. If not set the default value is 0.- Parameters:
- minSelectedTime- the minimum selected time in milliseconds
- Returns:
- chart model
 
- 
getMouseWheelScrollEnabledBoolean getMouseWheelScrollEnabled()- Returns:
- true if scroll chart with the mouse wheel is enabled
 
- 
setMouseWheelScrollEnabledSet true if you want scroll chart with the mouse wheel. If you press shift while rotating mouse wheel, the chart will zoom-in/out. If not set the default value is false.- Parameters:
- mouseWheelScrollEnabled- mouse wheel scroll option
- Returns:
- chart model
 
- 
getRotateBoolean getRotate()- Returns:
- true if rotate is enabled
 
- 
setRotateSet rotate to true, if the chart should be rotated by 90 degrees (the columns will become bars). If not set the default value is false.- Parameters:
- rotate- rotate option
- Returns:
- chart model
 
- 
getZoomOutOnDataUpdateBoolean getZoomOutOnDataUpdate()- Returns:
- true if chart should be zoom-out when data is updated
 
- 
setZoomOutOnDataUpdateSet zoomOutOnDataUpdate to true if chart should be zoom-out when data is updated. If not set the default value is true.- Parameters:
- zoomOutOnDataUpdate- zoomOutOnDataUpdate option
- Returns:
- chart model
 
- 
getMouseWheelZoomEnabledBoolean getMouseWheelZoomEnabled()- Returns:
- true if zooming of a chart with mouse wheel is enabled
 
- 
setMouseWheelZoomEnabledSet mouseWheelZoomEnabled to true if zooming of a chart with mouse wheel should be enabled. If you press shift while rotating mouse wheel, the chart will scroll. If not set the default value is false.- Parameters:
- mouseWheelZoomEnabled- mouseWheelZoomEnabled option
- Returns:
- chart model
 
- 
getValueScrollbarScrollbar getValueScrollbar()- Returns:
- value scrollbar
 
- 
setValueScrollbarSets value scrollbar, enables scrolling value axes.- Parameters:
- valueScrollbar- the value scrollbar
- Returns:
- chart model
 
- 
getSynchronizeGridBoolean getSynchronizeGrid()- Returns:
- true if synchronized grid is enabled
 
- 
setSynchronizeGridSet synchronizeGrid property to true and the chart will adjust minimum and maximum of axes so that the grid would be show at equal intervals. This helps users to compare values more easily.- Parameters:
- synchronizeGrid- synchronized grid option
- Returns:
- chart model
 
 
-