data-visualization - 这部分图表在 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}}
}
}
推荐阅读
- r - 时间序列预测(使用 R)
- javascript - 如何处理角度4中的空异常
- javascript - Firefox 在重新加载时保持更新服务工作者
- php - PHP argv 丢失导致脚本无法运行
- php - 在 wordpress 网站的页面上禁用了滑块。jQuery 在此页面上也被禁用。找出禁用它的最快方法是什么?
- php - 数组减少变量中的返回布尔值
- javascript - 期望 axios-mock-adapter 出错
- c# - 清除 ListView 项目选择 Xamarin.Forms
- wordpress - 无法在 WordPress 中停用 TinyMCE 插件
- javascript - 使用扩展拉丁字母验证个人姓名的 REGEX 模式