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:58] – asad | un:earthquakes-near-dhaka [2025/11/22 00:56] (current) – asad | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Earthquakes near Dhaka ====== | ====== Earthquakes near Dhaka ====== | ||
| - | |||
| < | < | ||
| - | <div id=" | + | <style> |
| + | #myPlot { | ||
| + | | ||
| + | | ||
| + | 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=" | <script src=" | ||
| < | < | ||
| - | console.log(' | + | console.log(' |
| + | console.log(' | ||
| - | console.log(' | + | function makePlot() { |
| + | | ||
| + | |||
| + | var container = document.getElementById(' | ||
| + | console.log(' | ||
| + | |||
| + | if (!container) { | ||
| + | console.error(' | ||
| + | return; | ||
| + | } | ||
| + | |||
| + | if (typeof Plotly | ||
| + | console.error(' | ||
| + | return; | ||
| + | } | ||
| - | if (typeof Plotly === ' | ||
| - | console.error(' | ||
| - | } else { | ||
| console.log(' | console.log(' | ||
| - | Plotly.newPlot( | + | |
| - | ' | + | // === FULL EARTHQUAKE FIGURE DATA === |
| - | [{ x: [1900, 1950, 2000], y: [4, 5, 6], type: 'scatter' | + | const figureData = {" |
