Hi,
I think I'm missing something when it comes to getting the code properly. When I try to go from one screen size to another, the gauge does not set its width and height to the parent container. As the parent component for CircularGaugeComponent, I'm utilizing a grid system. I'm using the MUI Grid structure for the grid layout, and I've set the CircularGaugeComponent's height and width to 100%. However, when I go to different screen sizes, everything is off-screen or very little. Also, if I maintain three in the grid, I can only see the last one.
PFA for Images.
Thank You!!
|
<CircularGaugeComponent style={{ height: '100%', width: '100%' }}>
//..
//..
</CircularGaugeComponent> |
Hi Indumathi,
Thank You for your response.
Your solution worked perfectly for me. However, there is one minor stumbling block: the height. The height of the component is fixed in some way; I tried adjusting the parent height while keeping the component at 100% height and width, but it didn't affect the height of the component.
Everything else is perfect.
Regards,
Satyam
|
<div style={{height: '600px'}}>
<CircularGaugeComponent style={{ height: inherit' }}>
//..
//..
</CircularGaugeComponent>
</div> |