- Fixed script ref and changed ss.linear_regression to ss.linearRegression.
- Added a polynomial regression fr. https://github.com/Tom-Alexander/regression-js
- Add exponential regression
license: gpl-3.0 |
// Hat tip Mike Bostock: https://github.com/mbostock/polymaps/blob/master/examples/bounds/bounds.js | |
function bounds(features) { | |
var i = -1, | |
n = features.length, | |
geometry, | |
bounds = [{lon: Infinity, lat: Infinity}, {lon: -Infinity, lat: -Infinity}]; | |
while (++i < n) { | |
//geometry = features[i].data.geometry; | |
geometry = features[i].geometry; |
Zoomable raster world map on an Lambert Conic Conformal aka Massachusetts State Plane.
Based off Jason Davies map which is a combination of Mike Bostock’s raster reprojection, automatic projection tiles and a MapBox terrain example.
Thanks to Mike Bostock and Nelson Minar for their comments and encouragement! And Obviously Jason Davies for making the original.
-- Fix reference to raw git files
This demo several time scales. src
D3's time axis does magic things. I expected to modify the x axis such that I could mostly re-use D3's date formatting tricks, but exercise
Use D3 to project points rather than leaflet (or OL)
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background: #fcfcfa; | |
} | |
</style> | |
<body> |
OpenLayers.Layer.D3 = OpenLayers.Class(OpenLayers.Layer.Vector, { | |
d3FeaturesNodeClass:'d3features', | |
d3Features:[], | |
afterAdd:function(){ | |
var self = this; | |
if(this.renderer.CLASS_NAME.match(/SVG$/)){ | |
this.d3InitSVG(); | |
this.events.register('moveend',this,this.onMoveEnd); |
Display GINA base layer in Antarctic Polar Stereographic projection.
Based on http://openlayers.org/en/master/examples/wms-tiled.html and http://openlayers.org/en/master/examples/wms-image-custom-proj.html