Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.8.4 (build 3094) - 14 September 2020 (please see announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).

Shapes and colours for Graphs

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

Post Reply
sutne
Posts: 102
Joined: Sun 14 Oct 2012 4:23 pm
Weather Station: Oregon Scientific WMR100
Operating System: Raspbian Buster
Location: Rjoanddalen, Voss, Norway

Shapes and colours for Graphs

Post by sutne »

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.)
You do not have the required permissions to view the files attached to this post.

User avatar
HansR
Posts: 1375
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Shapes and colours for Graphs

Post by HansR »

Yes, the colours can be changed.

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
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:
  1. People have different perceptions of coulours and intensities so it would be unwise to only have a small set prescribed colours
  2. 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
  3. 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.
  4. 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

    Code: Select all

    UseNormalTempReference=both
    UseNormalRainReference=both
    
    with the possible values: Normal, StationAverage, Both, None (not case sensitivive).
Hope this explains it a bit, enough user settings I think.
https://meteo-wagenborgen.nl / Cumulus 3.6.8 (build: 3084)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.51-v7+ armv7l (before: 4.19.118)
Mono JIT compiler version 6.10.0.104 (before: 6.8.0.123)

sutne
Posts: 102
Joined: Sun 14 Oct 2012 4:23 pm
Weather Station: Oregon Scientific WMR100
Operating System: Raspbian Buster
Location: Rjoanddalen, Voss, Norway

Re: Shapes and colours for Graphs

Post by sutne »

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’.
It was assumed - and I guess it does - that many series confuse the user.
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.

User avatar
HansR
Posts: 1375
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Shapes and colours for Graphs

Post by HansR »

sutne wrote:
Sun 17 May 2020 5:11 am
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’.
It was assumed - and I guess it does - that many series confuse the user.
OK.
sutne wrote:
Sun 17 May 2020 5:11 am
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.
I was afraid there would be pluralism in this, so I gave it a configuration option :lol:
https://meteo-wagenborgen.nl / Cumulus 3.6.8 (build: 3084)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.51-v7+ armv7l (before: 4.19.118)
Mono JIT compiler version 6.10.0.104 (before: 6.8.0.123)

Post Reply