Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove the border around a vega(-lite) plot?

Tags:

vega-lite

vega

Vega/Vega Lite plots have a faint gray border around them... is it possible to remove this via a configuration parameter, or do I need to render as SVG and use CSS to do so?

like image 412
Tom Crockett Avatar asked Oct 01 '17 18:10

Tom Crockett


People also ask

How do you remove a border from a picture?

Remove a border from a picture Select the picture whose border you want to remove. On the Page Layout tab, in the Page Background group, select Page Borders. Click the Borders tab. Under Setting, select None.


1 Answers

You can override the default cell style

"config": {
  "style": {
    "cell": {
      "stroke": "transparent"
    }
  }
}

Alternatively, you can set the view stroke

"config": {
  "view": {
     "stroke": "transparent"
  }
}

enter image description here

like image 112
dominik Avatar answered Sep 19 '22 11:09

dominik