> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IStaticDataChartProps

- Package: [@gooddata/sdk-ui-charts](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/index.md)
- Kind: interface
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.71/libs/sdk-ui-charts/src/charts/staticDataChart/StaticDataChart.tsx

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Props of the [StaticDataChart()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.staticdatachart/index.md) component.

**Signature:**

```typescript
export interface IStaticDataChartProps 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [afterRender?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropsafterrender) |  | () =&gt; void | **_(ALPHA)_** _(Optional)_ Called after the chart rendered. |
| [config?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropsconfig) |  | [IChartConfig](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.ichartconfig/index.md) | **_(ALPHA)_** _(Optional)_ Chart configuration (legend, data labels, color palette, ...). |
| [dataView](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropsdataview) |  | [IDataView](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.idataview/index.md) | **_(ALPHA)_** Data to render, provided as a ready-made data view. |
| [drillableItems?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropsdrillableitems) |  | [ExplicitDrill](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.explicitdrill/index.md)[] | **_(ALPHA)_** _(Optional)_ Items the user can drill on. |
| [height?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropsheight) |  | number | **_(ALPHA)_** _(Optional)_ Height of the chart in pixels. |
| [locale?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropslocale) |  | [ILocale](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ilocale/index.md) | **_(ALPHA)_** _(Optional)_ Locale for chart texts such as legend paging or empty value labels. |
| [onDataTooLarge?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropsondatatoolarge) |  | (chartOptions: unknown, errorMessage?: string) =&gt; void | **_(ALPHA)_** _(Optional)_ Called when the data exceeds the chart limits (either the optional `config.limits` or the hard limits of the chart type). |
| [onDrill?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropsondrill) |  | [OnFiredDrillEvent](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.onfireddrillevent/index.md) | **_(ALPHA)_** _(Optional)_ Called when the user drills into a chart element. |
| [onLegendReady?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropsonlegendready) |  | [OnLegendReady](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.onlegendready/index.md) | **_(ALPHA)_** _(Optional)_ Called when the chart legend is rendered. |
| [onNegativeValues?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropsonnegativevalues) |  | (chartOptions: unknown) =&gt; void | **_(ALPHA)_** _(Optional)_ Called when the data contains negative values that the chart type cannot display (pie chart). |
| [theme?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropstheme) |  | [ITheme](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.itheme/index.md) | **_(ALPHA)_** _(Optional)_ Theme to render the chart with. |
| [type](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropstype) |  | [StaticDataChartType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.staticdatacharttype/index.md) | **_(ALPHA)_** Type of chart to render the data as. |
| [width?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.istaticdatachartprops/index.md#istaticdatachartpropswidth) |  | number | **_(ALPHA)_** _(Optional)_ Width of the chart in pixels. |

## Property details

### IStaticDataChartProps.afterRender

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Called after the chart rendered.

**Signature:**

```typescript
afterRender?: () => void;
```

### IStaticDataChartProps.config

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Chart configuration (legend, data labels, color palette, ...).

**Signature:**

```typescript
config?: IChartConfig;
```

### IStaticDataChartProps.dataView

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Data to render, provided as a ready-made data view.

**Signature:**

```typescript
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.drillableItems

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Items the user can drill on.

**Signature:**

```typescript
drillableItems?: ExplicitDrill[];
```

### IStaticDataChartProps.height

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Height of the chart in pixels.

**Signature:**

```typescript
height?: number;
```

#### Remarks

When not specified, the chart measures and fills its container.

### IStaticDataChartProps.locale

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Locale for chart texts such as legend paging or empty value labels.

**Signature:**

```typescript
locale?: ILocale;
```

#### Remarks

Defaults to en-US.

### IStaticDataChartProps.onDataTooLarge

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Called when the data exceeds the chart limits (either the optional `config.limits` or the hard limits of the chart type).

**Signature:**

```typescript
onDataTooLarge?: (chartOptions: unknown, errorMessage?: string) => void;
```

#### Remarks

The chart renders empty in that case; use this callback to show a custom error state.

### IStaticDataChartProps.onDrill

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Called when the user drills into a chart element.

**Signature:**

```typescript
onDrill?: OnFiredDrillEvent;
```

### IStaticDataChartProps.onLegendReady

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Called when the chart legend is rendered.

**Signature:**

```typescript
onLegendReady?: OnLegendReady;
```

### IStaticDataChartProps.onNegativeValues

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Called when the data contains negative values that the chart type cannot display (pie chart).

**Signature:**

```typescript
onNegativeValues?: (chartOptions: unknown) => void;
```

#### Remarks

The chart renders empty in that case; use this callback to show a custom error state.

### IStaticDataChartProps.theme

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Theme to render the chart with.

**Signature:**

```typescript
theme?: ITheme;
```

#### Remarks

The component does not read the theme from React context; pass it explicitly when theming is desired.

### IStaticDataChartProps.type

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Type of chart to render the data as.

**Signature:**

```typescript
type: StaticDataChartType;
```

### IStaticDataChartProps.width

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Width of the chart in pixels.

**Signature:**

```typescript
width?: number;
```

#### Remarks

When not specified, the chart measures and fills its container.
