【发布时间】:2019-03-15 15:34:37
【问题描述】:
我希望在 Vega 中创建这种图表:
我在这里仔细阅读了有关标记的文档: https://vega.github.io/vega/docs/marks/line/
我阅读了 Type-Specific Mark Properties 和 defined 属性,这似乎是我所需要的。但我不知道如何使用这个属性。
我的标记是这样定义的:
'marks': [
{
'name': 'expected_sales',
'description': 'The sales line',
'type': 'line',
'defined': 'false', // this I added based on the documentation
'from': {
'data': 'SalesData'
},
'zindex': 100,
'encode': { ... }
}
]
但这显然行不通。该线路仍在继续。不得不提的是,我得到的数据点没有null 值,而是0.0。
【问题讨论】:
标签: charts data-visualization linechart vega