ChartsGeoDataProviderPremium API
API reference docs for the React ChartsGeoDataProviderPremium component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { ChartsGeoDataProviderPremium } from '@mui/x-charts-premium/ChartsGeoDataProviderPremium';
// or
import { ChartsGeoDataProviderPremium } from '@mui/x-charts-premium';Learn about the difference by reading this guide on minimizing bundle size.
Orchestrates the data providers for geographic chart components and hooks.
Similar to ChartsDataProviderPremium, but tailored to map / geo series.
| Name | Type | Default | Description |
|---|---|---|---|
| colors | Array<string> | func | rainbowSurgePalette | Color palette used to colorize multiple series. |
| height | number | - | The height of the chart in px. If not defined, it takes the height of the parent element. |
| id | string | - | This prop is used to help implement the accessibility logic. If you don't provide this prop. It falls back to a randomly generated id. |
| localeText | object | - | Localized text for chart components. |
| margin | number | { bottom?: number, left?: number, right?: number, top?: number } | - | The margin between the SVG and the drawing area. It's used for leaving some space for extra information such as the x- and y-axis or legend. |
| series | Array<object> | - | The array of series to display. Each type of series has its own specificity. Please refer to the appropriate docs page to learn more about it. |
| skipAnimation | bool | - | If |
| slotProps | object | - | The props for the slots. |
| slots | object | - | Slots to customize charts' components. See Slots API below for more details. |
| width | number | - | The width of the chart in px. If not defined, it takes the width of the parent element. |
| Slot name | Class name | Default component | Description |
|---|---|---|---|
| baseButton | |||
| baseDivider | |||
| baseIconButton | |||
| baseMenuItem | |||
| baseMenuList | |||
| basePopper | |||
| baseToggleButton | Note: MUI's ToggleButton has an incompatible href prop, so it must be cast: ToggleButton as unknown as React.ComponentType<ChartBaseToggleButtonProps & BaseToggleButtonPropsOverrides>. | ||
| baseToggleButtonGroup | |||
| baseTooltip | |||
| exportIcon | ChartsExportIcon | Icon displayed on the toolbar's export button. | |
| zoomInIcon | ChartsZoomInIcon | Icon displayed on the toolbar's zoom in button. | |
| zoomOutIcon | ChartsZoomOutIcon | Icon displayed on the toolbar's zoom out button. |
Source code
If you did not find the information in this page, consider having a look at the implementation of the component for more detail.