Open
Description
The bar chart has a good default x-axis that automatically set the scale type to band, and populate data
with needed array to display the y-values.
But those default are only applied if there is no axis provided:
mui-x/packages/x-charts/src/BarChart/useBarChartProps.ts
Lines 81 to 86 in 0c98c78
It should:
- Always defaultised the scale type to band
- defaultized the data if neither
data
nordataKey
are provided
The idea is to allow xAxis={[{ zomm: true }]}
to work with bar chart
Search keywords: