Skip to content

Instantly share code, notes, and snippets.

View basilesimon's full-sized avatar

Basile Simon basilesimon

View GitHub Profile
import { Map, TileLayer, GeoJSON } from "react-leaflet";
import "leaflet/dist/leaflet.css";
class PostcodeMap extends React.Component {
componentDidMount() {
//fetch data…
this.refs.map.leafletElement.fitBounds(
this.refs.geojson.leafletElement.getBounds()
);
}
@basilesimon
basilesimon / .block
Last active June 9, 2018 12:07
Pack Layout with Transitions
license: mit
Date
01-01-2018
03-01-2018
08-01-2018
08-01-2018
09-01-2018
11-01-2018
24-01-2018
28-01-2018
31-01-2018
@basilesimon
basilesimon / .block
Last active May 2, 2018 14:19
Fun with lines
license: mit
height: 210
@basilesimon
basilesimon / .block
Created May 1, 2018 16:20
fresh block
license: mit
@basilesimon
basilesimon / .block
Created March 22, 2018 15:23
hemicycle new layout
license: mit
// config
var config = {
// width, height, etc.
};
function loadAndPrepareData(filter) {
d3.csv('data.csv', function(error, data) {
if (error) throw error;
// empty store
@basilesimon
basilesimon / .block
Created November 24, 2017 16:04
Treemap
license: mit
@basilesimon
basilesimon / .block
Last active November 24, 2017 13:47
Timelines of bubbles
license: mit
@basilesimon
basilesimon / .block
Created November 2, 2017 17:22
Enclosing Force Circles
license: mit