在本例中:https://vega.github.io/vega-lite/examples/interactive_multi_line_pivot_tooltip.html
它们使用轴心转换&然后将字段symbol的每个值静态地写下来作为工具提示字段。
"tooltip": [
{"field": "AAPL", "type": "quantitative"},
{"field": "AMZN", "type": "quantitative"},
{"field": "GOOG", "type": "quantitative"},
{"field": "IBM", "type": "quantitative"},
{"field": "MSFT", "type": "quantitative"}
]假设我不知道数据集中的实际值,我如何动态生成相同的工具提示?
https://stackoverflow.com/questions/61024998
复制相似问题