I'm attempting to create a graph chart using Material UI with the LinearProgress
component and adding some custom styling. My goal is to rotate it by 90deg
.
const BorderLinearProgressBottom = withStyles((theme) => ({
root: {
height: 50,
borderRadius: 5,
},
colorPrimary: {
backgroundColor:
theme.palette.grey[theme.palette.type === "light" ? 200 : 700],
},
bar: {
borderRadius: 5,
backgroundColor: "#00A99E",
},
transform: [{ rotate: "90deg" }],
}))(LinearProgress);
using the following code:
<BorderLinearProgressBottom
variant="determinate"
value={22}
/>
This should result in a rotation like that shown in the image below:
https://i.sstatic.net/ormnDm.png
How can I achieve this rotation of 90deg
?
I have attempted to add
transform: [{ rotate: "90deg" }],
within the BorderLinearProgressBottom
but unfortunately, it didn't work as expected.