'How to display time series data as a bar chart in Grafana?
I'm trying to display a timeseries data as a bar chart but Grafana complains about
Bar charts requires a string field
This is my query:
SELECT COUNT(footage_type) as _count_, BIN(time,24h) AS DAY FROM "footage"."footage" WHERE footage_type='VIDEO' group by BIN(time,24h) order by DAY
This is how my data looks in table form:
But this happens in bar chart mode:
Likewise, the timestamps disappear in histogram mode:
What am I doing wrong ?
Solution 1:[1]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | ninsonTan |