Page 1 of 1

CUtlsCharts definition error

Posted: Wed 19 Jan 2022 12:59 pm
by AndyKF650
Hi Hans

I am currently having issues with the chart definition using a Column rather than a SPline.

Initially I found it when I rebuilt my utils portion of my RPi and noticed that the Chart AllWindRun did not behave as expected and produced a single line on the RHS of the chart, a similar error was seen on all charts which used columns rather than SPlines. I changed the column definition to SPline and all charts worked fine but not what I wanted!

To check that the basic CUtils software was working I reinstalled the current version, ran the website update, changed a column to a SPline and ran the compileonly update and that did not solve the problem. Is this something you have noticed or is it just me changing my system again.

I have attached a copy of the CUtilsCharts.def file so that you can see where I am at the moment.

Re: CUtlsCharts definition error

Posted: Wed 19 Jan 2022 3:32 pm
by HansR
Hi Andy,

I assume it is the following chart you are discussing:

Code: Select all

Chart AllWindrun Title All Windrun
  PLOT ALL Windrun As Column Colour #0D6D9D zindex 100 Opacity 0.4
EndChart
(you only need to post the problematic chart).

I added this chart to my test site (currently CMX4). You find it as the last of the Home-charts.
You say : and produced a single line on the RHS of the chart which I assume is what you see as problematic.

I assume you mean the chart only produces a Y-axis on the RHS (with the labels on the inside and without a unit), that I think is not as it should be, but is the same for the column version and the SPline version of the chart. The Y-axis should be on the left side (and maybe duplicated on the right side for a single line chart).
If you mean something different could you add a screenshot and an explanation?

So far I see this only happen with the WindRun chart (I assume it has to do with the distance unit).
I will have to look at it in detail but as I will be out of the loop for 5 days from tomorrow that will be somewhere next week.

Apart from the above I notice that suddenly your whole site goes wrong: the dashboard does not carry the gauges and the chart does not initialise correctly. The console says Highcharts and jQuery are double included. That is surprising and has to do with the inifile parameters GeneratejQueryInclude and DoLibraryIncludes. You will have to look at that.

Re: CUtlsCharts definition error

Posted: Wed 19 Jan 2022 4:19 pm
by AndyKF650
Hi Hans

Thanks so much for the advice which is correct as ever.

Sorting out the two .ini file parameters s GeneratejQueryInclude and DoLibraryIncludes to make them both false has made the charts work with columns again and I think made the website dashboard much more stable :D

There is no need to think about columns in charts next week!!

I am note sure how I picked up faulty .ini file but as they say ..it happens.

Re: CUtlsCharts definition error

Posted: Wed 19 Jan 2022 4:39 pm
by HansR
:D OK

Have to check out the y-axis though