Page 1 of 1

CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Thu 14 Jan 2021 3:45 pm
by AndyKF650
Has anyone else noticed that the daily rain is not displaying correctly on the recent Rainfall Chart. Looking at the charts.js file it seems that an extra line fillOpacity : 0.3 has been added to the file.

name: 'Daily rain',
type: 'area',
yAxis: 1,
tooltip: {valueSuffix: ' ' + config.rain.units},
fillOpacity: 0.3

If the line is removed the graph works as previously. I also tried increasing the value to 1.0 but the best result was 1.0 or plain removal of the line.

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Thu 14 Jan 2021 4:07 pm
by Fracas
I've the same problem (present also in v3.9.4 - 3099) but for Temperature, wind speed, and solar ...

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Thu 14 Jan 2021 4:40 pm
by PaulMy
v.3.9.5-b3100
local Dashboard -
All Recent charts are showing fine, including daily rain.
However in Historical none of the Temperature charts are showing, but the others are all fine.

Webpage -
All trends and historic are showing fine.

Enjoy,
Paul

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Thu 14 Jan 2021 4:49 pm
by PaulMy
Update!
Temperature missing has been fixed by editing chartshistoric.js as per viewtopic.php?p=149767#p149767
Thanks Mark.

Enjoy,
Paul

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Thu 14 Jan 2021 6:22 pm
by mcrossley
Which browser are you using to view these graphs that does not display correctly?

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Thu 14 Jan 2021 6:33 pm
by AndyKF650
I am using Opera and have been since I started on CMX in August 2020, I have not tried any others but could do see if that helps

I just checked out the Solar chart on Google Chrome and that is just a feint as that seen on Opera. Also checked the rain chart and the same applies. Not a browser problem!

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Sat 16 Jan 2021 9:39 am
by Fracas
The problem is on Recent charts and seems related to the amount of data.
I deleted all data and restarted cumulus; alla graphs were ok for about 1 h.
After that ... Temperature, wind speed and solar graphs are not loaded (The window reamain stopped on "Loading...".
Pressure and wind direction graphs are ok.
Tested using Firefox, Opera, Chrome and Edge.
Any idea?
Thx

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Sat 16 Jan 2021 2:33 pm
by mcrossley
I also tried increasing the value to 1.0 but the best result was 1.0 or plain removal of the line.
If you remove the fillOpactity line it will default to 0.75, so 25% fainter than setting it to 1.0 ??

This is beginning to feel like it could be a graphics card driver issue as it works fine for most people - or at least only one, maybe two people are reporting it.
The window reamain stopped on "Loading...".
@Fracas - This sounds like a separate issue. Your data is failing to load.
What period to you have defined for the Recent charts?

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Sat 16 Jan 2021 6:08 pm
by AndyKF650
Hi Mark

Thanks for the info and pointers. I look at the CMX charts on my pc with a newish NVIDA Ge Force GTX 1060 graphics card, I uninstalled and reinstalled the driver before I started today's retesting. No change to the display problems seen after reinstallation.

I note your point about the default fillOpacity being 0.75 for the recent rain chart but with the CMX program default set at 0.3 no green shading is present. An increase to 0.75 still produces a feint shading and 1.0 produces an acceptable shading.

For the avoidance of doubt this is all on line 647 on /interface/charts.js

I have also been looking at the solar chart issues and can not see where the fillOpacity line is in the Charts.js file. I have set my recent charts default display to 216 hours ie 9 days. When the solar chart is viewed at 9 days the display is viewable but feint, if you restrict the time frame to 4 days the full colour is seen. In version b3099 all days were clearly visible albeit in blue and green but when you changed the display in version b3100 the golden colours are very muted in the longer range. I have attached the screen shots for information.

I have just looked back at the rain chart and shortened the time frame and get full colour when I used 0.75 ie feint at full range.

These problems are both the same so presumably would have a common solution and perhaps not in the line I have been trying to amend.


I hope this rambling helps

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Sat 16 Jan 2021 9:55 pm
by Fracas
@mcrossley
Thanks! You are right.
I decreased the GraphHours to 4 and now the last 4 hours graphs are displayed correctly.
For sure the problem is related to the excessive reading rate that I'm actually using for test purpose (1 read every 30 seconds).
I'll reduce the data rate to more reasonable value as soon as my tests are completed.
Tanks again.

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Mon 18 Jan 2021 3:38 pm
by mcrossley
This seems to be a problem with the HighCharts boost function.

So for the solar graph, try adding this at line 845 in charts.js...

Code: Select all

        plotOptions: {
            series: {
                dataGrouping: {
to

Code: Select all

        plotOptions: {
            series: {
                boostThreshold: 0,
                dataGrouping: {

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Mon 18 Jan 2021 4:02 pm
by AndyKF650
Hi Mark

You are a star!!! :D , this works just fine now as per the attached screen shot

Also did the same fix on the rain chart at line 606 and that gives a more usable plot

Re: CMX 3.9.5 b3100 Rainfall chart not displaying

Posted: Mon 18 Jan 2021 5:23 pm
by mcrossley
Yep, I did the same on my test system. The boost function kicks in above 5,000 data points by default and plots the data on a Canvas rather than using SVG. I have raised a query on the HighCharts forum as to why this is happening, it doesn't look right to me.