Could you share what table(s) are produced by this query using Influx Data Explorer? Just wanting to get a better idea of the columns being returned by your query.
Got it. Thanks. I am not able to throw this into my InfluxDB at the moment, but I did think of this…can you just change the color of each item on the legend to the same color? Just click on the colored bar in the legend and pick a color? Or is that not the issue? I suppose you could use Overrides in Grafana as well.
Yes, that was my first idea. But the number of the sensors are not fixed. I suppose there is a fixed number of colors in grafana, so that the first sensor always have the color A, the second one is B, etc. This is fine because each sensor position will have the same color. But when I use the extra tag ‘block’, this order can not be maintaned.
Sorry for the delay. Does creating an Override like this help apply the color to each “block”? I guess this assumes all the values are being returned by the same Query A.
But for my only query called A has multiple series due to the number of tags used. Each of which as name field. How can I assign same color for each series where tag name ‘name’ has the same value?
My goal is to provide a single color for each series where the name tag has the same value, as noted above.
For example: the value of the name tag: Series 1 occured in multiple series, but each series has different color due to the group() fulx function and the default nature of coloring in grafana.
Using multiple columns in group function, I can visually separate series of points belong to one common tag so that I need to keep this tag in group function. When I apply the group function only for name, the coloring is OK, but all line-segments are connected, which is not good for me.
Is there any override function to keep the line segments separated, but provide single color for a given series where name tags are the same?
Maybe:
fields returned by query
fields with names matching regex
But I cant make it work with none of these.
Thank you for your help!
What does the above query look like when run in Influx Data Explorer with the toggle selected to show raw data? If you can also remove the |> group line from your query and share that screenshot as well, that will help me and others see the shape of your data being returned.