Vega图表交互式交叉过滤器在第一个单击时填充其他图表

问题描述

我指的是以下vega图表示例。

https://vega.github.io/vega-lite/examples/interactive_layered_crossfilter.html

我想具有以下功能:单击图表的距离栏,然后相对于距离值加载延迟和时间

解决方法

您可以通过将interval选择更改为single选择(view in editor)来做到这一点:

该链接在图表中的唯一区别是我更改了此内容:

"selection": {
  "brush": {"type": "interval","encodings": ["x"]}
},

对此:

"selection": {
  "brush": {"type": "single",

现在您可以通过单击选择单个条。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...