xxxxxxxxxx
<head>
<meta charset="utf-8">
<script src="https://vega.github.io/vega-editor/vendor/d3.min.js"></script>
<script src="https://vega.github.io/vega-editor/vendor/d3.geo.projection.min.js"></script>
<script src="https://vega.github.io/vega-editor/vendor/topojson.js"></script>
<script src="https://vega.github.io/vega-editor/vendor/d3.layout.cloud.js"></script>
<script src="https://vega.github.io/vega/vega.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
svg { width:100%; height: 100% }
</style>
</head>
<body>
<div id="vis"></div>
<script>
function parse(spec){
vg.parse.spec( spec, function(error, chart) {
chart({el:"#vis"}).update();
})
}
parse("spec.json");
</script>
</body>
Modified http://vega.github.io/vega/vega.min.js to a secure url
https://vega.github.io/vega-editor/vendor/d3.min.js
https://vega.github.io/vega-editor/vendor/d3.geo.projection.min.js
https://vega.github.io/vega-editor/vendor/topojson.js
https://vega.github.io/vega-editor/vendor/d3.layout.cloud.js
https://vega.github.io/vega/vega.min.js