sshyam-gupta / react-datamaps-india

React Datamaps for India Region
https://react-datamaps-india.vercel.app/
MIT License
8 stars 5 forks source link

Trying to fit map in Material UI paper #35

Closed ForearmW closed 2 years ago

ForearmW commented 2 years ago

I am having a grid and in that within Paper of Material UI , i am trying to fit this chart. But i am not able to fix the position of this chart on that particular grid part. How can i fix the position of chart on Paper of Material UI and within specified grid.

style.css file: svg { height: 900px; }

I am using import "./styles.css" directly in class where my map code is and not in App.js. Any help would be appreciated.

sshyam-gupta commented 2 years ago

@ForearmW can you share codesandbox link for this where I can debug? You may not need to set height for SVG, instead you can just set the height of you container and map auto-fits in it.