un:earthquakes-near-dhaka
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| un:earthquakes-near-dhaka [2025/11/21 23:33] – asad | un:earthquakes-near-dhaka [2025/11/22 00:56] (current) – asad | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Earthquakes near Dhaka ====== | ====== Earthquakes near Dhaka ====== | ||
| - | |||
| < | < | ||
| + | < | ||
| + | #myPlot { | ||
| + | width: 100%; | ||
| + | height: 600px; | ||
| + | position: relative; | ||
| + | } | ||
| + | |||
| + | #myPlot .plot-container, | ||
| + | #myPlot .svg-container, | ||
| + | #myPlot svg.main-svg { | ||
| + | width: 100% !important; | ||
| + | height: 100% !important; | ||
| + | visibility: visible !important; | ||
| + | overflow: visible !important; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | <div id=" | ||
| + | |||
| + | <script src=" | ||
| + | |||
| + | < | ||
| + | console.log(' | ||
| + | console.log(' | ||
| + | |||
| + | function makePlot() { | ||
| + | console.log(' | ||
| + | |||
| + | var container = document.getElementById(' | ||
| + | console.log(' | ||
| + | |||
| + | if (!container) { | ||
| + | console.error(' | ||
| + | return; | ||
| + | } | ||
| + | |||
| + | if (typeof Plotly === ' | ||
| + | console.error(' | ||
| + | return; | ||
| + | } | ||
| - | | + | |
| - | <script src=" | + | |
| - | < | + | |
| - | #myPlot { width: 100%; height: 600px; } /* Define a container for the plot */ | + | |
| - | </ | + | |
| - | | + | |
| + | const figureData = {"data": | ||
