Inspired by the Vega implementation of NYT Amanda Cox's Budget Forecast.
xxxxxxxxxx
<html>
<head>
<title>STATFOR Forecasts</title>
<script src="https://vega.github.io/vega-editor/vendor/d3.min.js"></script>
<script src="https://vega.github.io/vega-editor/vendor/vega.min.js"></script>
</head>
<body>
<div id="vis"></div>
</body>
<script type="text/javascript">
// parse a spec and create a visualization view
function parse(spec) {
vg.parse.spec(spec, function(chart) { chart({el:"#vis"}).update(); });
}
parse("spec.json");
</script>
</html>
https://vega.github.io/vega-editor/vendor/d3.min.js
https://vega.github.io/vega-editor/vendor/vega.min.js