File: test-container.html

package info (click to toggle)
node-vega-embed 6.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,016 kB
  • sloc: javascript: 50; sh: 8; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 699 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Vega-Embed test</title>

    <script src="https://cdn.jsdelivr.net/npm/vega@5"></script>
    <script src="build/vega-embed.js"></script>

    <style>
      #wrapper {
        width: 1000px;
        overflow: hidden;
        border: 1px solid firebrick;
      }
    </style>
  </head>

  <body>
    <div id="wrapper"></div>
    <script type="text/javascript">
      vegaEmbed("https://vega.github.io/vega/examples/bar-chart.vg.json").then((div) => {
        document.getElementById("wrapper").appendChild(div);
      });
    </script>
  </body>
</html>