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

# @gooddata/sdk-ui-vis-commons

This package provides functions commonly used when building visualizations.

## Remarks

This package is mainly used internally by other `@gooddata/sdk-ui-*` packages, and we do not recommend using it directly outside of GoodData because its API can change at any time.

## Functions

| Function | Description |
| --- | --- |
| [fixEmptyHeaderItems(dataView, emptyHeaderString)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-vis-commons/sdk-ui-vis-commons.fixemptyheaderitems/index.md) | This function will mutate the incoming data view and replace headers with empty name with a fallback string. This is so that we can show "(empty)" or similar strings in the UI. |
| [getColorMappingPredicate(testValue)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-vis-commons/sdk-ui-vis-commons.getcolormappingpredicate/index.md) | Creates new predicate for mapping colors to chart entities: - if attribute header, URI is expected to match testValue - otherwise (attr or measure descriptor) expecting local identifier match |

## Interfaces

| Interface | Description |
| --- | --- |
| [IColorMapping](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-vis-commons/sdk-ui-vis-commons.icolormapping/index.md) |  |
| [ICustomTooltipConfig](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-vis-commons/sdk-ui-vis-commons.icustomtooltipconfig/index.md) | **_(ALPHA)_** Custom tooltip configuration. |

## Type Aliases

| Type Alias | Description |
| --- | --- |
| [ChartFillType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-vis-commons/sdk-ui-vis-commons.chartfilltype/index.md) |  |
| [CustomTooltipPlacement](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-vis-commons/sdk-ui-vis-commons.customtooltipplacement/index.md) | **_(ALPHA)_** Placement of the custom tooltip section relative to the default tooltip content. |
