I have 8 feeds - 4 temperature, 4 humidity. Because of the different scales, I have the feeds split into two line charts. Although the temperature and humidity feeds are similarly named and are logically paired {(t1, h1), (t2, h2)} (for both feed name and key names), when I add the feeds to line charts, they legend comes out something like (t3,t2,t1,t4) and (h2,h1,h3,h4). This means the colors assigned to logical pairs are different -- making reading the chart error prone.
Is there a way to force the feeds to come out in the same order in between the two charts? What determine the order that the feeds appear in the legend?
TIA
Controlling the order of feeds in line chart legend - how to
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- macewmi
- Posts: 69
- Joined: Sat Feb 08, 2020 10:26 am
- jwcooper
- Posts: 1004
- Joined: Tue May 01, 2012 9:08 pm
Re: Controlling the order of feeds in line chart legend - ho
We currently do not have a way to force the order of feeds. I'll file an issue internally and we can look into adding it.
If I had to guess, it is ordered by creation timestamp in ascending order, but I'm not 100% sure on that yet.
If I had to guess, it is ordered by creation timestamp in ascending order, but I'm not 100% sure on that yet.
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.