Package io.jmix.charts.component.impl
Class GanttChartImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<JmixAmchartsScene>
io.jmix.charts.component.impl.ChartImpl<T,M>
io.jmix.charts.component.impl.CoordinateChartImpl<T,M>
io.jmix.charts.component.impl.RectangularChartImpl<T,M>
io.jmix.charts.component.impl.SeriesBasedChartImpl<GanttChart,GanttChartModelImpl>
io.jmix.charts.component.impl.GanttChartImpl
- All Implemented Interfaces:
Chart<GanttChart>
,CoordinateChart<GanttChart>
,GanttChart
,RectangularChart<GanttChart>
,SeriesBasedChart<GanttChart>
,HasStartEffect<GanttChart>
,ChartModel<GanttChart>
,CoordinateChartModel<GanttChart>
,GanttChartModel<GanttChart>
,RectangularChartModel<GanttChart>
,SeriesBasedChartModel<GanttChart>
,HasColors<GanttChart>
,HasMargins<GanttChart>
,AttachNotifier
,Component
,Component.BelongToFrame
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,Component.HasXmlDescriptor
,Component.Wrapper
,HasContextHelp
,HasDebugId
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
,org.springframework.beans.factory.InitializingBean
public class GanttChartImpl
extends SeriesBasedChartImpl<GanttChart,GanttChartModelImpl>
implements GanttChart
-
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.ZoomEvent
Nested 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.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
Nested classes/interfaces inherited from interface io.jmix.charts.component.SeriesBasedChart
SeriesBasedChart.CategoryItemClickEvent
-
Field Summary
Fields inherited from class io.jmix.charts.component.impl.SeriesBasedChartImpl
categoryItemClickHandler, zoomHandler
Fields inherited from class io.jmix.charts.component.impl.RectangularChartImpl
cursorZoomHandler, periodSelectHandler
Fields inherited from class io.jmix.charts.component.impl.CoordinateChartImpl
axisZoomHandler, graphClickHandler, graphItemClickHandler, graphItemRightClickHandler, rollOutGraphItemListener, rollOutGraphListener, rollOverGraphItemListener, rollOverGraphListener
Fields inherited from class io.jmix.charts.component.impl.ChartImpl
chartLocaleHelper, clickHandler, currentAuthentication, formatStringsRegistry, legendItemHideHandler, legendItemShowHandler, legendLabelClickHandler, legendMarkerClickHandler, messages, rightClickHandler
Fields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Fields inherited from interface io.jmix.charts.component.GanttChart
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalSegmentFields
(String... fields) Adds additional segment fields.protected GanttChartModelImpl
getGraph()
setAdditionalSegmentFields
(List<String> additionalSegmentFields) Sets the list of additional segment fields that should be fetched from the data provider, similarly to theadditionalFields
attribute.setBrightnessStep
(Integer brightnessStep) Sets brightness step.setColorField
(String colorField) Sets segment color field from your data provider.setColumnWidthField
(String columnWidthField) Sets field of column width of a segments from your data provider.setDurationField
(String durationField) Sets duration field.setEndDateField
(String endDateField) Sets end date field from your data provider which holds end date of a segment.setEndField
(String endField) Sets end field from your data provider which holds end value of a segment.Sets graph of a Gantt chart.setPeriod
(DatePeriod period) Sets data period.setSegmentsField
(String segmentsField) Sets segments field in your data provider.setStartDate
(Date startDate) Sets initial date of value axis.setStartDateField
(String startDateField) Sets date field from your data provider which holds start date of a segment.setStartField
(String startField) Sets start field from your data provider which holds start value of a segment.setValueAxis
(ValueAxis valueAxis) Sets value axis of Gantt chart.Methods inherited from class io.jmix.charts.component.impl.SeriesBasedChartImpl
addCategoryItemClickListener, addZoomListener, detectDateBasedCategoryAxis, getBalloonDateFormat, getCategoryAxis, getCategoryField, getColumnSpacing, getColumnSpacing3D, getColumnWidth, getDataDateFormat, getMaxSelectedSeries, getMaxSelectedTime, getMinSelectedTime, getMouseWheelScrollEnabled, getMouseWheelZoomEnabled, getRotate, getSynchronizeGrid, getValueScrollbar, getZoomOutOnDataUpdate, onCategoryItemClick, onZoomEvent, setBalloonDateFormat, setCategoryAxis, setCategoryField, setColumnSpacing, setColumnSpacing3D, setColumnWidth, setDataDateFormat, setMaxSelectedSeries, setMaxSelectedTime, setMinSelectedTime, setMouseWheelScrollEnabled, setMouseWheelZoomEnabled, setRotate, setSynchronizeGrid, setupDefaults, setupSerialChartDefaults, setValueScrollbar, setZoomOutOnDataUpdate, zoomOut, zoomToDates, zoomToIndexes
Methods inherited from class io.jmix.charts.component.impl.RectangularChartImpl
addCursorPeriodSelectListener, addCursorZoomListener, addTrendLines, getAngle, getAutoMarginOffset, getAutoMargins, getChartCursor, getChartScrollbar, getDepth3D, getMarginBottom, getMarginLeft, getMarginRight, getMarginsUpdated, getMarginTop, getMaxZoomFactor, getMinMarginBottom, getMinMarginLeft, getMinMarginRight, getMinMarginTop, getPlotAreaBorderAlpha, getPlotAreaBorderColor, getPlotAreaFillAlphas, getPlotAreaFillColors, getPlotAreaGradientAngle, getTrendLines, getZoomOutButtonAlpha, getZoomOutButtonColor, getZoomOutButtonImage, getZoomOutButtonImageSize, getZoomOutButtonPadding, getZoomOutButtonRollOverAlpha, getZoomOutButtonTabIndex, getZoomOutText, onCursorPeriodSelect, onCursorZoom, setAngle, setAutoMarginOffset, setAutoMargins, setChartCursor, setChartScrollbar, setDepth3D, setMarginBottom, setMarginLeft, setMarginRight, setMarginsUpdated, setMarginTop, setMaxZoomFactor, setMinMarginBottom, setMinMarginLeft, setMinMarginRight, setMinMarginTop, setPlotAreaBorderAlpha, setPlotAreaBorderColor, setPlotAreaFillAlphas, setPlotAreaFillColors, setPlotAreaGradientAngle, setTrendLines, setupRectangularChartDefaults, setZoomOutButtonAlpha, setZoomOutButtonColor, setZoomOutButtonImage, setZoomOutButtonImageSize, setZoomOutButtonPadding, setZoomOutButtonRollOverAlpha, setZoomOutButtonTabIndex, setZoomOutText
Methods inherited from class io.jmix.charts.component.impl.CoordinateChartImpl
addAxisZoomListener, addColors, addGraphClickListener, addGraphItemClickListener, addGraphItemRightClickListener, addGraphs, addGuides, addRollOutGraphItemListener, addRollOutGraphListener, addRollOverGraphItemListener, addRollOverGraphListener, addValueAxes, getColors, getGraphById, getGraphs, getGridAboveGraphs, getGuides, getSequencedAnimation, getStartAlpha, getStartDuration, getStartEffect, getUrlTarget, getValueAxes, onAxisZoomListener, onGraphClick, onGraphItemClick, onGraphItemRightClick, onRollOutGraphClick, onRollOutGraphItemClick, onRollOverGraphClick, onRollOverGraphItemClick, setColors, setGraphs, setGridAboveGraphs, setGuides, setSequencedAnimation, setStartAlpha, setStartDuration, setStartEffect, setUrlTarget, setValueAxes, zoomOutValueAxes, zoomOutValueAxis, zoomOutValueAxis, zoomValueAxisToValues, zoomValueAxisToValues
Methods inherited from class io.jmix.charts.component.impl.ChartImpl
addAdditionalFields, addClickListener, addData, addLabels, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addRightClickListener, addTitles, afterPropertiesSet, 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, setUsePrefixes
Methods 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, withUnwrappedComposition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.charts.component.Chart
addClickListener, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addRightClickListener, getDataProvider, getNativeJson, repaint, setDataProvider, setNativeJson
Methods 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, setUsePrefixes
Methods 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, withUnwrappedComposition
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaption
Methods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescription
Methods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSet
Methods inherited from interface io.jmix.charts.component.CoordinateChart
addAxisZoomListener, addGraphClickListener, addGraphItemClickListener, addGraphItemRightClickListener, addRollOutGraphItemListener, addRollOutGraphListener, addRollOverGraphItemListener, addRollOverGraphListener, zoomOutValueAxes, zoomOutValueAxis, zoomOutValueAxis, zoomValueAxisToValues, zoomValueAxisToValues
Methods inherited from interface io.jmix.charts.model.chart.CoordinateChartModel
addGraphs, addGuides, addValueAxes, getGraphs, getGridAboveGraphs, getGuides, getSequencedAnimation, getStartAlpha, getUrlTarget, getValueAxes, setGraphs, setGridAboveGraphs, setGuides, setSequencedAnimation, setStartAlpha, setUrlTarget, setValueAxes
Methods inherited from interface io.jmix.charts.model.HasMargins
getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop
Methods inherited from interface io.jmix.charts.model.animation.HasStartEffect
getStartDuration, getStartEffect, setStartDuration, setStartEffect
Methods inherited from interface io.jmix.charts.component.RectangularChart
addCursorPeriodSelectListener, addCursorZoomListener
Methods inherited from interface io.jmix.charts.model.chart.RectangularChartModel
addTrendLines, 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
Methods inherited from interface io.jmix.charts.component.SeriesBasedChart
addCategoryItemClickListener, addZoomListener, zoomOut, zoomToDates, zoomToIndexes
Methods inherited from interface io.jmix.charts.model.chart.SeriesBasedChartModel
getBalloonDateFormat, getCategoryAxis, getCategoryField, getColumnSpacing, getColumnSpacing3D, getColumnWidth, getDataDateFormat, getMaxSelectedSeries, getMaxSelectedTime, getMinSelectedTime, getMouseWheelScrollEnabled, getMouseWheelZoomEnabled, getRotate, getSynchronizeGrid, getValueScrollbar, getZoomOutOnDataUpdate, setBalloonDateFormat, setCategoryAxis, setCategoryField, setColumnSpacing, setColumnSpacing3D, setColumnWidth, setDataDateFormat, setMaxSelectedSeries, setMaxSelectedTime, setMinSelectedTime, setMouseWheelScrollEnabled, setMouseWheelZoomEnabled, setRotate, setSynchronizeGrid, setValueScrollbar, setZoomOutOnDataUpdate
-
Constructor Details
-
GanttChartImpl
public GanttChartImpl()
-
-
Method Details
-
createChartConfiguration
- Specified by:
createChartConfiguration
in classChartImpl<GanttChart,
GanttChartModelImpl>
-
getBrightnessStep
- Specified by:
getBrightnessStep
in interfaceGanttChartModel<GanttChart>
- Returns:
- brightness step
-
setBrightnessStep
Description copied from interface:GanttChartModel
Sets brightness step. Lightness increase of each subsequent bar of one series. Value range is from -255 to 255.- Specified by:
setBrightnessStep
in interfaceGanttChartModel<GanttChart>
- Parameters:
brightnessStep
- brightness step- Returns:
- gantt chart model
-
getColorField
- Specified by:
getColorField
in interfaceGanttChartModel<GanttChart>
- Returns:
- segment color field
-
setColorField
Description copied from interface:GanttChartModel
Sets segment color field from your data provider.- Specified by:
setColorField
in interfaceGanttChartModel<GanttChart>
- Parameters:
colorField
- color field string- Returns:
- gantt chart model
-
getColumnWidthField
- Specified by:
getColumnWidthField
in interfaceGanttChartModel<GanttChart>
- Returns:
- column width field
-
setColumnWidthField
Description copied from interface:GanttChartModel
Sets field of column width of a segments from your data provider.- Specified by:
setColumnWidthField
in interfaceGanttChartModel<GanttChart>
- Parameters:
columnWidthField
- column width field string- Returns:
- gantt chart model
-
getDurationField
- Specified by:
getDurationField
in interfaceGanttChartModel<GanttChart>
- Returns:
- duration field
-
setDurationField
Description copied from interface:GanttChartModel
Sets duration field. Instead of specifying end date or end value in your data, you can specify duration of a segment.- Specified by:
setDurationField
in interfaceGanttChartModel<GanttChart>
- Parameters:
durationField
- duration field string- Returns:
- gantt chart model
-
getEndDateField
- Specified by:
getEndDateField
in interfaceGanttChartModel<GanttChart>
- Returns:
- end date field
-
setEndDateField
Description copied from interface:GanttChartModel
Sets end date field from your data provider which holds end date of a segment.- Specified by:
setEndDateField
in interfaceGanttChartModel<GanttChart>
- Parameters:
endDateField
- end date field string- Returns:
- gantt chart model
-
getEndField
- Specified by:
getEndField
in interfaceGanttChartModel<GanttChart>
- Returns:
- end field
-
setEndField
Description copied from interface:GanttChartModel
Sets end field from your data provider which holds end value of a segment. If your data is date-based, you should use endDateField instead, unless you specified startDate and period values. In this case you can use endField and set number of periods instead of providing exact end date. If not set the default value is "ss".- Specified by:
setEndField
in interfaceGanttChartModel<GanttChart>
- Parameters:
endField
- end field string- Returns:
- gantt chart model
-
getGraph
- Specified by:
getGraph
in interfaceGanttChartModel<GanttChart>
- Returns:
- graph
-
setGraph
Description copied from interface:GanttChartModel
Sets graph of a Gantt chart. Gantt chart actually creates multiple graphs (separate for each segment). Properties of this graph are passed to each of the created graphs - this allows you to control the look of segments.- Specified by:
setGraph
in interfaceGanttChartModel<GanttChart>
- Parameters:
graph
- the graph- Returns:
- gantt chart model
-
getPeriod
- Specified by:
getPeriod
in interfaceGanttChartModel<GanttChart>
- Returns:
- data period
-
setPeriod
Description copied from interface:GanttChartModel
Sets data period. Used only value axis is date-based.- Specified by:
setPeriod
in interfaceGanttChartModel<GanttChart>
- Parameters:
period
- the period- Returns:
- gantt chart model
-
getSegmentsField
- Specified by:
getSegmentsField
in interfaceGanttChartModel<GanttChart>
- Returns:
- segments field
-
setSegmentsField
Description copied from interface:GanttChartModel
Sets segments field in your data provider.- Specified by:
setSegmentsField
in interfaceGanttChartModel<GanttChart>
- Parameters:
segmentsField
- segments field string- Returns:
- gantt chart model
-
getStartDate
- Specified by:
getStartDate
in interfaceGanttChartModel<GanttChart>
- Returns:
- start date
-
setStartDate
Description copied from interface:GanttChartModel
Sets initial date of value axis. If you set this date, then you can set start, end, duration of segments using number of periods instead of providing exact dates.- Specified by:
setStartDate
in interfaceGanttChartModel<GanttChart>
- Parameters:
startDate
- the start date- Returns:
- gantt chart model
-
getStartDateField
- Specified by:
getStartDateField
in interfaceGanttChartModel<GanttChart>
- Returns:
- start date field
-
setStartDateField
Description copied from interface:GanttChartModel
Sets date field from your data provider which holds start date of a segment.- Specified by:
setStartDateField
in interfaceGanttChartModel<GanttChart>
- Parameters:
startDateField
- start date field string- Returns:
- gantt chart model
-
getStartField
- Specified by:
getStartField
in interfaceGanttChartModel<GanttChart>
- Returns:
- start field
-
setStartField
Description copied from interface:GanttChartModel
Sets start field from your data provider which holds start value of a segment. If your data is date-based, you should use startDateField instead, unless you specified startDate and period values. In this case you can use startField and set number of periods instead of providing exact start date.- Specified by:
setStartField
in interfaceGanttChartModel<GanttChart>
- Parameters:
startField
- start field string- Returns:
- gantt chart model
-
getValueAxis
- Specified by:
getValueAxis
in interfaceGanttChartModel<GanttChart>
- Returns:
- value axis
-
setValueAxis
Description copied from interface:GanttChartModel
Sets value axis of Gantt chart. Set it's type to "date" if your data is date or time based.- Specified by:
setValueAxis
in interfaceGanttChartModel<GanttChart>
- Parameters:
valueAxis
- the value axis- Returns:
- gantt chart model
-
getAdditionalSegmentFields
- Specified by:
getAdditionalSegmentFields
in interfaceGanttChartModel<GanttChart>
- Returns:
- additional segment fields that should be fetched from the data provider
-
setAdditionalSegmentFields
Description copied from interface:GanttChartModel
Sets the list of additional segment fields that should be fetched from the data provider, similarly to theadditionalFields
attribute.- Specified by:
setAdditionalSegmentFields
in interfaceGanttChartModel<GanttChart>
- Parameters:
additionalSegmentFields
- list of additional segment fields- Returns:
- gantt chart model
-
addAdditionalSegmentFields
Description copied from interface:GanttChartModel
Adds additional segment fields.- Specified by:
addAdditionalSegmentFields
in interfaceGanttChartModel<GanttChart>
- Parameters:
fields
- the fields- Returns:
- gantt chart model
-