[英]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.