Started initial work.  May have to wipe out most of this....
Got charts.php to output JSON
Finally got a D3 object to show up on history.php in the right location
The graph definition is now passed into chart.js via JSON