TRB wrote: ↑Sat 12 Sep 2020 12:49 am
As for the advice from Hans on colour changes, I had a yesterday poked around the files he suggested but unable to find any specific links to titles. So colours remain an issue.
In my CMX installation it is on './webfiles/lib/highstock/js/themes/*.*'
But that may be because I started with an older installation.
If you can't find them in your installation, you will have to get the theme(s) from the
Highcharts github. As you can see from my previous post, the grid.js file is taken from the Highcharts site itself. You would have to make that file local and modify it to your needs. Modify the reference in trends.htm/trendsT.htm. The trends.htm (trendsT.htm) file is in './web' and that should be there always.
Code: Select all
<script src="https://code.highcharts.com/8.0/themes/grid.js"></script>
Should be modified to:
Code: Select all
<script src="[your URL]/grid.js"></script>
Then modify the
colors array in the beginning of the grid.js file (and better leave the rest untouched until you feel more comfortable with the construction).
Code: Select all
colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4']
Don't remove or add commas or quotes, just modify the hex numbers. You may use HTML color names.
Note these changes can be done and then seen immediately with a [ctrl-]F5 of your page if you experiment directly on the web. To make things permanent you need to change trendsT.htm file which will be processed by CMX.