[charts] Support themeAugmentation
#12070
Labels
component: charts
This is the name of the generic UI component, not the React module!
RFC
Request For Comments
typescript
waiting for 👍
Waiting for upvotes
The
themeAugmentation
works but in a bad way. Some typed properties does not work because of missinguseThemeProps
and lots of components added after the v6.alpha did not get added to the TS extendsI'm not entirely convinced. Plus the current strategy seems a bit chaotic.
Maybe it would be better to only target root components such as
LineChart
,BarChart
,PieChart
which have interesting props, and can customize nearly every thing with CSS selectors.With this solution it is not possible to customize charts that mix lines and bars, or any other composition. But I expect people going that deep in customization to don't use themeing for charts styling.
I propose to wait for feedback about specific usecases in favor (or against) the support of
themeAugmentation
in charts before resuming the effortSearch keywords:
The text was updated successfully, but these errors were encountered: