Difference between revisions of "Web Element: Vega Lite"


Line 11: Line 11:
 
</style>
 
</style>
 
</head>
 
</head>
  <body>
+
<body>
    <h1>Template for Embedding Vega-Lite Visualization</h1>
+
<h1>Template for Embedding Vega-Lite Visualization</h1>
    <!-- Container for the visualization -->
+
<!-- Container for the visualization -->
    <div id="vis"></div>
+
<div id="vis"></div>
 
+
<script>
    <script>
 
 
       // Assign the specification to a local variable vlSpec.
 
       // Assign the specification to a local variable vlSpec.
 
       var vlSpec = {
 
       var vlSpec = {
Line 49: Line 48:
 
       // Embed the visualization in the container with id `vis`
 
       // Embed the visualization in the container with id `vis`
 
       vegaEmbed('#vis', vlSpec);
 
       vegaEmbed('#vis', vlSpec);
    </script>
+
</script>
  </body>
+
</body>
 
</html>
 
</html>

Revision as of 05:25, 12 November 2020

Template for Embedding Vega-Lite Visualization