Skip to content

Commit

Permalink
test vega graph
Browse files Browse the repository at this point in the history
  • Loading branch information
jowens committed Jul 28, 2017
1 parent 7450007 commit 52f00c6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<!-- Import Vega 3 & Vega-Lite 2 js (does not have to be from cdn) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega/2.6.5/vega.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-lite/1.3.1/vega-lite.js"></script>
<!-- Import vega-embed -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/2.2.0/vega-embed.js"></script>
</head>
<body>

<div id="vis"></div>

<script type="text/javascript">
var spec = "https://raw.githubusercontent.com/vega/vega/master/docs/examples/bar-chart.vg.json";
vega.embed('#vis', spec);
</script>
</body>
</html>

0 comments on commit 52f00c6

Please sign in to comment.