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.
Locked
User avatar
macewmi
 
Posts: 69
Joined: Sat Feb 08, 2020 10:26 am

Controlling the order of feeds in line chart legend - how to

Post by macewmi »

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.
Screen Shot 2022-05-30 at 8.31.50 AM.png
Screen Shot 2022-05-30 at 8.31.50 AM.png (177.61 KiB) Viewed 168 times
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

User avatar
jwcooper
 
Posts: 1004
Joined: Tue May 01, 2012 9:08 pm

Re: Controlling the order of feeds in line chart legend - ho

Post by jwcooper »

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.

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”