Difference between revisions of "Web Element: Vega Lite"
Line 11: | Line 11: | ||
</style> | </style> | ||
</head> | </head> | ||
− | + | <body> | |
− | + | <h1>Template for Embedding Vega-Lite Visualization</h1> | |
− | + | <!-- Container for the visualization --> | |
− | + | <div id="vis"></div> | |
− | + | <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> | |
− | + | </body> | |
</html> | </html> |
hkilter.com by H. K. Ilter is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
© 2020 H. K. Ilter