feat: use svg for vega-lite renderer

Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
Max Wu 2020-02-27 17:34:07 +08:00
parent 0a253a4f32
commit 3a5c6fa5ed
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ export function finishView (view) {
const specText = $value.text() const specText = $value.text()
$value.unwrap() $value.unwrap()
window.vegaEmbed($ele[0], JSON.parse(specText)) window.vegaEmbed($ele[0], JSON.parse(specText), { renderer: 'svg' })
.then(result => { .then(result => {
$ele.addClass('vega') $ele.addClass('vega')
}) })