[英]What is this part of the chart called in Vega-Lite?
我試圖擺脫 Vega-Lite 中圖表框的右側。 我想一旦我弄清楚它的名字就可以將顏色設置為白色。 這不是域或網格,它是什么? 對於獎勵積分,我需要做什么才能讓它消失? 謝謝。
您突出顯示的行稱為stroke
,您將在view
配置中找到它,因為它是圖表視圖的一部分,並提供白色或透明的值。
請參閱以下代碼段或編輯器參考:
{
"$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}}
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.