IStaticDataChartProps
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Props of the StaticDataChart() component.
export interface IStaticDataChartProps
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
() => void | (ALPHA) (Optional) Called after the chart rendered. | ||
(ALPHA) (Optional) Chart configuration (legend, data labels, color palette, …). | |||
(ALPHA) Data to render, provided as a ready-made data view. | |||
(ALPHA) (Optional) Items the user can drill on. | |||
number | (ALPHA) (Optional) Height of the chart in pixels. | ||
(ALPHA) (Optional) Locale for chart texts such as legend paging or empty value labels. | |||
(chartOptions: unknown, errorMessage?: string) => void | (ALPHA) (Optional) Called when the data exceeds the chart limits (either the optional | ||
(ALPHA) (Optional) Called when the user drills into a chart element. | |||
(ALPHA) (Optional) Called when the chart legend is rendered. | |||
(chartOptions: unknown) => void | (ALPHA) (Optional) Called when the data contains negative values that the chart type cannot display (pie chart). | ||
(ALPHA) (Optional) Theme to render the chart with. | |||
(ALPHA) Type of chart to render the data as. | |||
number | (ALPHA) (Optional) Width of the chart in pixels. |
Property details
IStaticDataChartProps.afterRenderpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Called after the chart rendered.
afterRender?: () => void;
IStaticDataChartProps.configpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Chart configuration (legend, data labels, color palette, …).
config?: IChartConfig;
IStaticDataChartProps.dataViewpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Data to render, provided as a ready-made data view.
dataView: IDataView;
Remarks
The data view carries the execution definition (buckets, attributes, measures, dimensions), the dimension descriptors with header items, and the data values. It does not have to originate from a live execution - it can be assembled in memory.
IStaticDataChartProps.drillableItemspropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Items the user can drill on.
drillableItems?: ExplicitDrill[];
IStaticDataChartProps.heightpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Height of the chart in pixels.
height?: number;
Remarks
When not specified, the chart measures and fills its container.
IStaticDataChartProps.localepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Locale for chart texts such as legend paging or empty value labels.
locale?: ILocale;
Remarks
Defaults to en-US.
IStaticDataChartProps.onDataTooLargepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Called when the data exceeds the chart limits (either the optional config.limits or the hard limits of the chart type).
onDataTooLarge?: (chartOptions: unknown, errorMessage?: string) => void;
Remarks
The chart renders empty in that case; use this callback to show a custom error state.
IStaticDataChartProps.onDrillpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Called when the user drills into a chart element.
onDrill?: OnFiredDrillEvent;
IStaticDataChartProps.onLegendReadypropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Called when the chart legend is rendered.
onLegendReady?: OnLegendReady;
IStaticDataChartProps.onNegativeValuespropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Called when the data contains negative values that the chart type cannot display (pie chart).
onNegativeValues?: (chartOptions: unknown) => void;
Remarks
The chart renders empty in that case; use this callback to show a custom error state.
IStaticDataChartProps.themepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Theme to render the chart with.
theme?: ITheme;
Remarks
The component does not read the theme from React context; pass it explicitly when theming is desired.
IStaticDataChartProps.typepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Type of chart to render the data as.
type: StaticDataChartType;
IStaticDataChartProps.widthpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Width of the chart in pixels.
width?: number;
Remarks
When not specified, the chart measures and fills its container.