How to use the vega-embed.default function in vega-embed

To help you get started, we’ve selected a few vega-embed examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hslayers / hslayers-ng / components / sensors / sensors.service.js View on Github external
}
                },
                "mark": { "type": "line", "tooltip": { "content": "data" } },
                "selection": {
                    "selector016": {
                        "bind": "scales",
                        "encodings": [
                            "x",
                            "y"
                        ],
                        "type": "interval"
                    }
                }
            }
            try {
                vegaEmbed(document.querySelector('#chartplace'), chartData);
            } catch (ex) {
                console.warn('Could not create vega chart:', ex);
            }
        }
github google / timesketch / timesketch / frontend / src / components / VegaLiteChart.vue View on Github external
vegaSpec: function (newVal, oldVal) {
      vegaEmbed('#vega', JSON.parse(this.vegaSpec), { actions: false })
    }
  }
github xhochy / altair-vue-vega-example / altair-app / src / components / HelloWorld.vue View on Github external
response.json().then(spec => {
          vegaEmbed('#vega-box', spec, {actions: false})
        })
      })

vega-embed

Publish Vega visualizations as embedded web components.

BSD-3-Clause
Latest version published 1 month ago

Package Health Score

86 / 100
Full package analysis