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

1

10

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?

Mireillemireles answered 1/10, 2017 at 18:7 Comment(0)
D
18

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

Downswing answered 18/11, 2017 at 9:32 Comment(3)
Due to possible version changes since, only the first version worked, of course, one solution is good enoughColumbuscolumbyne
It still works for me. vega.github.io/editor/#/url/vega-lite/…Downswing
Thanks Dominik! I'll circle back to it, tried it with vega, not vega-lite thoughColumbuscolumbyne

© 2022 - 2024 — McMap. All rights reserved.