Is it possible to control the shapes and colours of the Graphs in Cumulusutils?
As seen in the enclosed screen-dump the graph for 2018 and 2013 has the same symbols and colour.
(We all know today that 2018 was the hot year, but maybe some day we have forgotten that.)
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Shapes and colours for Graphs
Moderator: HansR
-
- Posts: 382
- Joined: Sun 14 Oct 2012 4:23 pm
- Weather Station: HP2553 (WS80) and HP2564 (WS90)
- Operating System: Raspbian Bullseye and Bookworm
- Location: Rjoanddalen and Kronstad, Norway
- Contact:
Shapes and colours for Graphs
You do not have the required permissions to view the files attached to this post.
- HansR
- Posts: 5967
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Shapes and colours for Graphs
Yes, the colours can be changed.
The graphs module has the following parameters:
and defines 13 colours which you can change for whatever valid colour you like in any HTML/Highcharts colour definition. Th number of colours also can be increased.
The idea behind it was that:
The graphs module has the following parameters:
Code: Select all
GraphColors=['darkcyan', 'crimson', 'cyan', 'blue', 'green', 'yellow', 'red', 'blueviolet', 'chartreuse', 'coral', 'cornflowerblue', 'darkblue', 'darkgreen']
MaxNrOfSeriesVisibileInGraph=2
The idea behind it was that:
- People have different perceptions of coulours and intensities so it would be unwise to only have a small set prescribed colours
- Highcharts cycles the colours so if you have more than 13 years of data visible the first colour is used again. Either make less series visible or add another colour
- It was assumed - and I guess it does - that many series confuse the user. Therefore only the last two years are defaulted to be visible at startup. If you have more series, you can click visible whatever series you want to view and compare with. This graph was inspired by the Charctic Interactive Sea Ice Graph.
- In that same type of graph (both for temp and rain) it is possible to show reference lines for the Normal Values and for the Station Average. The last one becoming more and more interesting as the number of series/years increases. This is governed by with the possible values: Normal, StationAverage, Both, None (not case sensitivive).
Code: Select all
UseNormalTempReference=both UseNormalRainReference=both
Hans
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
-
- Posts: 382
- Joined: Sun 14 Oct 2012 4:23 pm
- Weather Station: HP2553 (WS80) and HP2564 (WS90)
- Operating System: Raspbian Bullseye and Bookworm
- Location: Rjoanddalen and Kronstad, Norway
- Contact:
Re: Shapes and colours for Graphs
Thank you.
This was helpful, but I will comment on the colours used by default: ‘crimson’ looks very much the same as ‘red’ when used on the graphs. I changed it to ‘maroon’.
This was helpful, but I will comment on the colours used by default: ‘crimson’ looks very much the same as ‘red’ when used on the graphs. I changed it to ‘maroon’.
Yes and no. It is useful to see the trend over the whole period. And if one wants to compare only few years, one can select them from the year numbers.It was assumed - and I guess it does - that many series confuse the user.
- HansR
- Posts: 5967
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Shapes and colours for Graphs
OK.
I was afraid there would be pluralism in this, so I gave it a configuration option
Hans
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3