How to display the X-axes data in compare mode

In ES, I have such kind of data

I’d like to show the data in Grafana by grouping by device_name and then by date.
Currently I created two Bar graph, one is for used_space metric, another for total_space metric.

Is there any way to combin these two graph into one? I mean, in X-Axes, each device show both used_space and total_space?


Yes, you can add multiple queries per panel, see screenshot below:

Just click on Add Query and you can have one query for used_space metric and another one for total_space metric in the same panel (graph).