This file contains hidden or 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: mit |
This file contains hidden or 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: mit |
This file contains hidden or 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
{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} /> | |
} |
This file contains hidden or 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
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() | |
); | |
} |
This file contains hidden or 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: mit |
This file contains hidden or 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
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 |
This file contains hidden or 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: mit | |
height: 210 |
This file contains hidden or 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: mit |
This file contains hidden or 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: mit |
This file contains hidden or 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
// config | |
var config = { | |
// width, height, etc. | |
}; | |
function loadAndPrepareData(filter) { | |
d3.csv('data.csv', function(error, data) { | |
if (error) throw error; | |
// empty store |