Ammad,
Thank you for your patience.
We can set the flex-container class to the chart and make
the display CSS as important to resolve the reported scenario. We have created
a react application to demonstrate the same. Please find the below stackblitz
link for your reference.
Sample link: https://stackblitz.com/edit/react-p5c3nt-jmta7u?file=index.js,index.html
Code Snippet:
|
.flex-container {
display:
flex !important;
justify-content: center;
align-items:
center;
height:
100vh !important;
}
<ChartComponent
id="charts"
className="flex-container"></ChartComponent>
|
Screenshot:

Kindly, revert us if you have any concerns.