raintank / crate-datasource

Apache License 2.0
13 stars 8 forks source link

separate graphs by grouped by column in custom query #30

Closed joemoe closed 7 years ago

joemoe commented 7 years ago

when we do a custom query and want to have graphs for every group by value it doesn't seem possible at the moment. is there a way to achieve this?

jodok commented 7 years ago

screenshot 2016-12-01 09 56 33

alexanderzobnin commented 7 years ago

It isn't so easy - we should parse query and find GROUP BY clause and its columns, but I think it's possible.

joemoe commented 7 years ago

ok, let's leave it for now, we should keep this in mind. can't you use the number of returned values. no1: timestamp, x val no2: value, y val no3: group or does this destroy something else?

alexanderzobnin commented 7 years ago

It makes sense to use rest values from each row as GROUP BY column values. I'll do it.