Inspired by the New York Times article : [You Draw It: What Got Better or Worse During Obama’s] (https://www.nytimes.com/interactive/2017/01/15/us/politics/you-draw-obama-legacy.html)
This repository is a fork from Adam Pearce’s early/simplified version of “You draw it”, based on D3.js.
[Check the demo] (https://benoitfuric.github.io/you-draw-it-graph/) - An interactive graph which works on desktop and mobile.
In js/_script.js, put the limit of the view, according to your data.
c.x.domain([2007, 2016])
c.y.domain([0, 700])You can define the place of the in js/_script.js. Choose an element or an id.
var sel = d3.select('#infographie').html('')`- Reveal the result with a button and not at the end of the drawing
- Display data on the graph
- Add a grid
