plotly / react-plotly.js

A plotly.js React component from Plotly 📈
MIT License
1.01k stars 135 forks source link

Make plot 100% width by removing empty spaces on left and right (screenshots) #300

Closed StasSpawn closed 1 year ago

StasSpawn commented 1 year ago

My container (js-plotly-plot) already 100% width. But inside where data located big empty spaces.

How can I remove them, so plot will be visible in every place of Container. 2022-11-15_185732 2022-11-15_185832 2022-11-15_185853

I don't want to be limited by this red rectangle.

Margin already 0 Width and height are not in settings (not in JSON), I need to adapt It for different screens, and don't need particular size.


Or another question - how can I move plot WITH grid? 2022-11-15_192637

StasSpawn commented 1 year ago

Fixed by removing tag <g class="clips"> from html (just with css or js).