@topgrid/grid-pro-chart-enterprise
Pro: Enterprise charting (Apache ECharts adapter) over the grid-pro-chart range/pivot bridge · 상용 (EULA)
이 페이지는 소스 코드의 TSDoc 주석에서 자동 생성됩니다(내부 표식 정제). 큐레이트된 시작용 요약은 API 레퍼런스 참고.
총 12개 public export — 함수 2 · 훅 0 · 컴포넌트 2 · 타입 8 · 상수 0.
컴포넌트
EChartsChart
EChartsChart(__namedParameters: EChartsChartProps): Element
EnterpriseChartPanel
EnterpriseChartPanel(__namedParameters: EnterpriseChartPanelProps): Element
함수
createEChartsRenderer
Seam-compatible factory — produces a renderChart callback that satisfies the EXISTING
RangeChartPanel.renderChart?: (series: RangeSeries[]) => ReactNode injection seam, backed by
ECharts. This lets a consumer who only has the minimal grid-pro-chart panel drop in an enterprise
chart engine without changing that package ( / — integrate via the seam, don't mutate it).
RangeSeries is lossy (numeric data, no x labels), so index positions become the categories.
createEChartsRenderer(spec: ChartOptionSpec): (…) => …
matrixToEChartsOption
Map a labelled matrix (range or pivot bridge output) to an ECharts option for the given type. Pure: same inputs → same plain object. Throws on a type outside the implemented catalog.
matrixToEChartsOption(data: ChartMatrix, spec: ChartOptionSpec): EChartsOption
타입 · 인터페이스
ChartMatrix
Framework-neutral chart input — a labelled 2-D matrix. grid-pro-chart's MatrixChartData
(seriesFromMatrix / seriesFromPivot output) structurally satisfies this.
| 속성 | 타입 | 설명 |
|---|---|---|
categories | string[] | |
series | ChartSeriesInput[] |
ChartOptionSpec
| 속성 | 타입 | 설명 |
|---|---|---|
dataLabels? | boolean | Show per-point value labels. |
secondaryAxisSeries? | string[] | Series names that should plot against a secondary (right) Y axis. Cartesian types only. |
type | EnterpriseChartType |
ChartSelection
Payload handed to EChartsChartProps.onSelect when a datum is clicked (cross-filter source).
| 속성 | 타입 | 설명 |
|---|---|---|
name | string | |
value | unknown |
ChartSeriesInput
One named numeric series of a ChartMatrix (pure data; no framework types).
| 속성 | 타입 | 설명 |
|---|---|---|
color? | string | |
name | string | |
values | number[] |
EChartsChartProps
| 속성 | 타입 | 설명 |
|---|---|---|
className? | string | |
height? | string | number | |
onInit? | (…) => … | Receives the live instance once mounted (e.g. for getDataURL export). |
onSelect? | (…) => … | Fires on datum click — wire to a grid filter for cross-filtering. |
option | EChartsOption | Usually the result of matrixToEChartsOption(...). |
width? | string | number |
EnterpriseChartPanelProps
| 속성 | 타입 | 설명 |
|---|---|---|
className? | string | |
data | MatrixChartData | Bridge output — seriesFromMatrix(...) / seriesFromPivot(...). |
enableExport? | boolean | |
enableToolbar? | boolean | |
initialType? | EnterpriseChartType | |
onCrossFilter? | (…) => … | Fires on chart datum click — map to a grid filter for cross-filtering. |
title? | string | |
toolbarTypes? | EnterpriseChartType[] | Which types the toolbar offers. Defaults to a 6-type subset; pass any of the 17 catalog types. |
EChartsInstance
Live ECharts instance type (avoids importing a named type that may shift across versions).
type EChartsInstance = ReturnType<query>
EnterpriseChartType
Chart types implemented by the catalog engine.
type EnterpriseChartType = "line" | "bar" | "area" | "stacked-bar" | "stacked-area" | "100-stacked-bar" | "scatter" | "bubble" | "pie" | "doughnut" | "funnel" | "treemap" | "radar" | "heatmap" | "candlestick" | "boxplot" | "sankey"