图表的这一部分在 Vega-Lite 中叫什么?

What is this part of the chart called in Vega-Lite?

我正试图摆脱 Vega-Lite 中图表框的右侧。我假设一旦弄清楚它的名称,我就可以将颜色设置为白色。它不是域或网格,它是什么?对于奖励积分,我需要做什么才能让它消失?谢谢

您突出显示的行称为 stroke,您可以在 view 配置中找到它,因为它是图表视图的一部分,并提供白色或透明的值。

参考以下代码片段或editor参考:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Google's stock price over time.",
  "data": {"url": "data/stocks.csv"},
  "transform": [{"filter": "datum.symbol==='GOOG'"}],
  "mark": "line",
  "config": {"view": {"stroke": "transparent"}},
  "encoding": {
    "x": {"field": "date", "type": "temporal", "axis": {"grid": false}},
    "y": {"field": "price", "type": "quantitative", "axis": {"domain": false}}
  }
}