SiChartBaseComponent documentation¶
import { SiChartBaseComponent } from '@siemens/charts-ng/common'; Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| additionalOptions ¶ | EChartOption | undefined | Used to override specific properties set in | |
| autoZoomSeriesIndex ¶ | number | -1 | No auto dataZoom update) by default. Use together with |
| axisPointer ¶ | string | boolean | undefined | false | Used to display |
| customLegendAction ¶ | boolean | undefined | Enable custom legend click actions exposed by the | |
| dataZoomFilterMode ¶ | FilterMode | 'none' | The data zoom filter mode. (see https://echarts.apache.org/en/option.html#dataZoom-inside.filterMode) The value 'filter' will cause the lines to be disconnected to the outside of the chart. |
| dataZoomMaxValueSpan ¶ | number | undefined | The upper limit of the data zoom slider (see https://echarts.apache.org/en/option.html#dataZoom-slider.maxValueSpan). | |
| dataZoomMinValueSpan ¶ | number | undefined | The lower limit of the data zoom slider (see https://echarts.apache.org/en/option.html#dataZoom-slider.minValueSpan). | |
| dataZoomRange ¶ | DataZoomRange | undefined | Apply a specific zoom range (see https://echarts.apache.org/en/option.html#dataZoom-inside). | |
| eChartContainerHeight ¶ | string | null | undefined | The height of the ECharts container as decimal. | |
| externalXAxisFormatter ¶ | ((value: any, visibleRange: number) => string) | undefined | External XAxis Formatter from consumer | |
| externalZoomSlider ¶ | boolean | false | Flag to use external zoom slider |
| maxEntries ¶ | number | 1000 | Maximum number of series data points shown in the chart. |
| options ¶ | EChartOption | undefined | See [ECharts 5.x Documentation]https://echarts.apache.org/en/option.html for all available options. | |
| palette ¶ | string | undefined | undefined | The name of the color palette (if any) of the loaded |
| renderer ¶ | "canvas" | "svg" | 'canvas' | the renderer to use: canvas or svg |
| selectedItem ¶ | SelectedLegendItem | { legendItemName: '' } | Specify selected legend item. |
| showCustomLegend ¶ | boolean | false | Enable to show a custom legend. The custom legend offers additional features such as, scroll bar to avoid legend and chart overlapping, Left and right alignment of legends based on y-axis, etc and many more. |
| showLegend ¶ | boolean | true | Show Echarts legend |
| showTimeRangeBardeprecated ¶ | boolean | false | If true, add consumer-provided time range bar. Use together with Deprecated: The input will be removed in future versions as the time range bar slot is deprecated. |
| subTitle ¶ | string | undefined | The subtitle of the chart. | |
| theme ¶ | any | The desired theme to load. | |
| themeCustomization ¶ | any | Used to override specific options of loaded | |
| title ¶ | string | undefined | The title of the chart. | |
| visibleEntries ¶ | number | -1 | No auto dataZoom update) by default. Use together with |
| visibleRange ¶ | number | -1 | No auto dataZoom update) by default. Use together with |
| zoomInside ¶ | boolean | false | Enables zooming inside the chart with the mouse wheel/touch. Whether zooming inside the chart is possible with mouse. |
| zoomSlider ¶ | boolean | false | Enables the zoom slider below the chart. |
| zoomSliderBrush ¶ | boolean | true | enable brush mode for zoom slider |
| zoomSliderRealtime ¶ | boolean | true | realtime update mode for zoom slider |
| zoomSliderShadow ¶ | boolean | true | Shows data shadow in dataZoom slider, use together with |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| chartGridResized ¶ | GridRectCoordinate | Event emitted when chart grid is resized. |
| chartSeriesClick ¶ | LegendItem | Event emitted when a chart series is clicked. |
| customLegendMultiLineInfoEvent ¶ | CustomLegendMultiLineInfo[] | Event emitted when custom legend multi-line info changes. |
| dataZoom ¶ | DataZoomEvent | Event emitted when data zoom changes. |
| pointer ¶ | AxisPointerEvent | Event emitted when axis pointer moves. |
| selectionChanged ¶ | any | Event emitted when selection changes e.g. clicking on a legend item. |
| showLegendChange ¶ | boolean | Show Echarts legend |
| timeRangeChange ¶ | number | Emitted when data zoom changes, indicating the time range in milliseconds, 0 for full range |
| visibleEntriesChange ¶ | number | No auto dataZoom update) by default. Use together with |
| visibleRangeChange ¶ | number | No auto dataZoom update) by default. Use together with |
Attributes and Methods¶
| Name | Type | Default | Description |
|---|---|---|---|
| (readonly) chartContainerWrapper ¶ | Signal<ElementRef<any>> | viewChild.required<ElementRef>('chartContainerWrapper') | reference to the wrapper container. Used for setting scroll position, etc. |
| dispatchEChartAction() ¶ | (action: echarts.Payload) => void | Send action to echart. See: https://echarts.apache.org/en/api.html#action Parameters | |
| getOptionNoClone() ¶ | () => any | returns the current EChart options, w/o cloning anything. Be very careful not to change anything in the data structure in it. | |
| getSeriesColorBySeriesName() ¶ | Get color by series name. Parameters | ||
| getVisibleRange() ¶ | () => DataZoomEvent | undefined | Get current data zoom range. | |
| refreshSeries() ¶ | (isLive?: boolean = true, dzToSet?: DataZoomRange) => void | Re-render the chart series data. This method should be called on series data changes. | |
| resetChart()deprecated ¶ | () => void | Re-render the whole chart. Deprecated: The method is deprecated and should not be used directly by the consumer. | |
| resize() ¶ | () => void | Allow consuming applications to re-draw chart on window resizes. | |
| setTimeRange() ¶ | Set the data zoom range for the chart in milliseconds. As an example one hour is the value 3600000. | ||
| startProgressIndication() ¶ | () => void | Show loading indicator. | |
| stopProgressIndication() ¶ | () => void | Hide loading indicator. | |
| themeSwitch() ¶ | () => void | Switch theme using echarts api, which does not need reloading the whole chart. | |
| toggleSeriesVisibility() ¶ | Toggle visibility of a series. |
Types Documentation¶
import type { FilterMode } from '@siemens/charts-ng/common'; import type { SelectedLegendItem } from '@siemens/charts-ng/common'; import type { CustomLegendMultiLineInfo } from '@siemens/charts-ng/common'; import type { LegendComponentOption } from '@siemens/charts-ng'; import type { DataZoomComponentOption } from '@siemens/charts-ng'; GridComponentOption
extends ComponentOption, ComponentOnCalendarOptionMixin, ComponentOnMatrixOptionMixin, BoxLayoutOptionMixin, ShadowOptionMixin ¶import type { GridComponentOption } from '@siemens/charts-ng'; -
bottom?:
PositionSizeOptionInherited from BoxLayoutOptionMixin¶ -
calendarId?:
OptionIdInherited from ComponentOnCalendarOptionMixin¶ -
calendarIndex?:
numberInherited from ComponentOnCalendarOptionMixin¶ - deprecated
Deprecated: Use
grid.outerBoundsinstead. Whether grid size contains axis labels. This approach estimates the size by sample labels. It works for most case but it does not strictly contain all labels in some cases. -
coord?:
CoordinateSystemDataCoordInherited from ComponentOption¶ -
coordinateSystem?:
stringInherited from ComponentOption¶ -
coordinateSystemUsage?:
CoordinateSystemUsageOptionInherited from ComponentOption¶ -
height?:
PositionSizeOptionInherited from BoxLayoutOptionMixin¶ -
id?:
OptionIdInherited from ComponentOption¶ -
left?:
PositionSizeOptionInherited from BoxLayoutOptionMixin¶ -
mainType?:
"grid"Inherited from ComponentOption¶ -
matrixId?:
OptionIdInherited from ComponentOnMatrixOptionMixin¶ -
matrixIndex?:
numberInherited from ComponentOnMatrixOptionMixin¶ -
name?:
OptionNameInherited from ComponentOption¶ -
{left, right, top, bottom, width, height}: Define a outerBounds rect, based on:
• the canvas by default.
• or the
dataToLayoutresult if aboxCoordinateSystemis specified.outerBounds?:
BoxLayoutOptionMixin¶ -
Available only when
outerBoundsModeis not 'none'. Offer a constraint to not to shrink the grid rect causing smaller that width/height. A string means percent, like '30%', based on the original rect size determined bygrid.top/right/bottom/left/width/height. -
• 'all': Default. Contains the cartesian rect and axis labels and axis name.
• 'axisLabel': Contains the cartesian rect and axis labels. This effect differs slightly from the previous option
containLabelbut more precise.• 'auto'/null/undefined: Default. be 'axisLabel' if
containLabel:true, otherwise 'all'.outerBoundsContain?:
"auto" | "all" | NullUndefined$1 | "axisLabel"¶ -
Define a constrains rect. Axis lines is firstly laid out based on the rect defined by
grid.left/right/top/bottom/width/height. (for axis line alignment requirements between multiple grids) But if axisLabel and/or axisName overflow the outerBounds, shrink the layout to avoid that overflow.Options:
• 'none': outerBounds is infinity.
• 'same': outerBounds is the same as the layout rect defined by
grid.left/right/top/bottom/width/height.• 'auto'/null/undefined: Default. Use
outerBounds, or 'same' ifcontainLabel:true.Note:
grid.containLabelis equivalent to{outerBoundsMode: 'same', outerBoundsContain: 'axisLabel'}.outerBoundsMode?:
"auto" | "none" | NullUndefined$1 | "same"¶ -
right?:
PositionSizeOptionInherited from BoxLayoutOptionMixin¶ -
shadowBlur?:
numberInherited from ShadowOptionMixin¶ -
shadowColor?:
stringInherited from ShadowOptionMixin¶ -
shadowOffsetX?:
numberInherited from ShadowOptionMixin¶ -
shadowOffsetY?:
numberInherited from ShadowOptionMixin¶ -
top?:
PositionSizeOptionInherited from BoxLayoutOptionMixin¶ -
type?:
stringInherited from ComponentOption¶ -
width?:
PositionSizeOptionInherited from BoxLayoutOptionMixin¶ -
z?:
numberInherited from ComponentOption¶ -
zlevel?:
numberInherited from ComponentOption¶
import type { EChartSeries } from '@siemens/charts-ng/common'; import type { AxisType } from '@siemens/charts-ng/common'; EChartSeriesOption
| BarSeriesOption | CandlestickSeriesOption | CustomSeriesOption | GaugeSeriesOption | HeatmapSeriesOption | LineSeriesOption | PieSeriesOption | ScatterSeriesOption | SankeySeriesOption | SunburstSeriesOption | never ¶import type { EChartSeriesOption } from '@siemens/charts-ng/common'; import type { BarSeriesOption } from '@siemens/charts-ng'; import type { CandlestickSeriesOption } from '@siemens/charts-ng'; import type { CustomSeriesOption } from '@siemens/charts-ng'; import type { GaugeSeriesOption } from '@siemens/charts-ng'; import type { HeatmapSeriesOption } from '@siemens/charts-ng'; import type { LineSeriesOption } from '@siemens/charts-ng'; import type { PieSeriesOption } from '@siemens/charts-ng'; import type { ScatterSeriesOption } from '@siemens/charts-ng'; import type { SankeySeriesOption } from '@siemens/charts-ng'; import type { SunburstSeriesOption } from '@siemens/charts-ng'; Except where otherwise noted, content on this site is licensed under MIT License.