Skip to content

Instantly share code, notes, and snippets.

View basilesimon's full-sized avatar

Basile Simon basilesimon

View GitHub Profile
@basilesimon
basilesimon / .block
Last active July 19, 2018 15:34
2fresh block
license: mit
@basilesimon
basilesimon / .block
Created July 19, 2018 13:18
fresh block
license: mit
{xScale &&
!this.state.guess &&
<Slider xScale={this.state.xScale} handleGuess={this.handleGuess} />
}
{this.state.guess &&
&& this.state.allPredictionsFromBackend
<Chart xScale={this.state.xScale}
predictions={allPredictionsFromBackend} />
}
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