Data source: https://visibleearth.nasa.gov/view.php?id=73909
index.html
has been copied without modification from the OpenLayers examples:
https://openlayers.org/en/latest/examples/heatmap-earthquakes.html
This example comes directly from https://plot.ly/javascript/line-and-scatter/, and includes all the HTML needed to render in a browser.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x=42; | |
console.log('bar') |
Uses CSS
- linear-gradient
- box-shadow
Check out an SVG button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 960 | |
border: no |
The key is to use appropriate CSS for the containers...
display: inline-block;
for side-by-side containersvertical-align: top;
so content aligns along the top (default is baseline of parent)float: left;
otherwise carriage-return between containers will take up spacewidth: 48%;
must account for padding on left & right
##Google spreadsheet as a data source (CORS)
This demo retrieves data as CSV from the Google spreadsheet at this URL.
To adapt this demo to another spreadsheet:
- You must share the spreadsheet so that "Anyone with the link can view" it.
- You need a unique spreadsheet key (the long string
1Cj1...ieYo
in the URL above). You can get it from the "shareable link", or from the address bar when you edit the spreadsheet in a browser.