praekelt/sapphire — pull request #89 by justinvdm (2014-10-23 12:24:26+00:00)
Title: Make widget layout easier to modify

At the moment, all of the widget's elements are created with javascript. This makes it difficult to change or extend the layout of the widgets (which is what needs to be done for NDOH).

The plan is to require the html for widgets to tell sapphire where to draw what parts of the widget:

```html

```

```javascript
d3.select('#some-widget')
.datum({...})
.call(sapphire.widgets.lines());
```