Page 1 of 1

Trends graph air link chart

Posted: Thu 13 Apr 2023 1:58 pm
by The PIT
I've noticed on the air link trends graph the pm2.5 and pm 10 are the same colours. Anyway to change one of them so it's easier too see.

https://www.sheffieldweather.net/trends.htm#airquality

The old chart has them in different colours

https://www.sheffieldweather.net/trends ... airquality

Re: Trends graph air link chart

Posted: Thu 13 Apr 2023 3:18 pm
by HansR
For me both links show the same chart with the same colours (two different colours).
If you use the most recent version of CMX, you can set the line colour options in the menu Display Options=>Charts=>Data Series Colours.
Hope this helps.

Re: Trends graph air link chart

Posted: Thu 13 Apr 2023 4:33 pm
by The PIT
Fixed it after going through the old and new cumuluschart.js and spotting an extra line under the section for air quality. Removing it got the different colours back.

The culprit was the line color: config.series[idx].colour,

Re: Trends graph air link chart

Posted: Thu 13 Apr 2023 4:35 pm
by The PIT
However I'll now do it properly :)

Re: Trends graph air link chart

Posted: Thu 13 Apr 2023 5:01 pm
by HansR
Removing lines in the standard code is not really the right way, better report a bug than ;)

Re: Trends graph air link chart

Posted: Thu 13 Apr 2023 6:03 pm
by The PIT
it wasn't a but though I just didn't know you could change colours elsewhere.

Is there a way to change the legend text so like sensor one can be sun temp it takes the name from the generated json file as far as I can tell.

Re: Trends graph air link chart

Posted: Thu 13 Apr 2023 6:37 pm
by HansR
As far as I know you can't.
There are tools around which can though but that's a whole different setup.

Re: Trends graph air link chart

Posted: Thu 13 Apr 2023 6:55 pm
by The PIT
A feature request then :)

Re: Trends graph air link chart

Posted: Thu 13 Apr 2023 7:15 pm
by HansR
You never know :)