A temporary package to provide a hook for getting @elastic/charts
theme based on @elastic/eui
theme.
To be refactored to be consumed from ElasticChartsProvider
.
import { useElasticChartsTheme } from '@kbn/charts-theme';
import { Chart, Settings } from '@elastic/charts';
export function MyComponent() {
const baseTheme = useElasticChartsTheme();
return (
<Chart>
<Settings
baseTheme={baseTheme}
{/* ... */}
/>
{/* ... */}
</Chart>
)
}