[charts] How to add horizontal layout for Responsive charts? #13142
Labels
component: charts
This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
Steps to reproduce
Link to live example: (required)
https://stackblitz.com/edit/react-zb9yvc-gyrtno?file=Demo.js and https://stackblitz.com/edit/react-nn5u1e-yjybdr?file=Demo.js
Steps:
layout: 'horizontal'
property and it doesn't work.Current behavior
https://stackblitz.com/edit/react-zb9yvc-gyrtno?file=Demo.js and https://stackblitz.com/edit/react-nn5u1e-yjybdr?file=Demo.js
charts are not adding horizontal layout when I add
layout: 'horizontal
on the code.The working code for horizontal layout only works for when we do not have a responsive chart i.e. one that uses ResponsiveChartContainer. Take a look at this example from the documentation. https://mui.com/x/react-charts/bars/#system-HorizontalBars.js
Expected behavior
Looking for a way to add
layout: 'horizontal'
property on charts that are responsive and that are using ResponsiveChartContainer. When the chart is responsive, the property doesn't work. The documentation does not provide any other property for this.Context
Need to have the following responsive charts in horizontal layout.
Your environment
npx @mui/envinfo
Search keywords: horizontal layout muix charts
The text was updated successfully, but these errors were encountered: