按术语分组的堆叠视图不适用于 Grafana-Framework 和 Elasticsearch

Stacked view grouped by terms don’t work with Grafana-Framework and Elasticsearch

是否有可能在用户之后堆叠条形图?

大家好, 在 Elasticsearch 索引“test”中,我有这个数据:

{"statement": {"type": "cook", "actor": "user1", "timestamp":  "2016-11-29T10:14:19.180600+00:00"}},
{"statement": {"type": "cook", "actor": "user1", "timestamp": "2016-11-29T15:03:59.907900+00:00"}},
{"statement": {"type": "sleep", "actor": "user1", "timestamp": "2016-11-29T14:50:29.088900+00:00"}},
{"statement": {"type": "sleep", "actor": "user2", "timestamp": "2016-11-29T15:06:38.894700+00:00"}},
{"statement": {"type": "cook", "actor": "user2", "timestamp": "2016-11-29T15:21:48.873300+00:00"}},
{"statement": {"type": "sleep", "actor": "user2", "timestamp": "2016-11-29T15:23:12.020700+00:00"}}

这就是我得到的

This Picture shows what metric i have used

This Picutre shows what x-axis-options i have used

您无法将 X 轴模式设置为系列来制作堆叠条。它只适用于时间模式