Author Topic: AWN24Graf  (Read 196 times)

0 Members and 1 Guest are viewing this topic.

Offline toreland

  • Member
  • *
  • Posts: 1
AWN24Graf
« on: January 04, 2025, 08:13:31 PM »
Is possible to change color on graph to more rain color grey is a bit sad :-)

https://myweather.site/wxgraphsawn.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9650
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: AWN24Graf
« Reply #1 on: January 04, 2025, 09:36:34 PM »
Yes, it is possible.  For the rain display change AWNgraphs/awngraphs.js
Quote
                name: wxlegend.rain.rain,
                type: 'area',
                yAxis: 1,
                tooltip: {valueSuffix: ' '+wxuom.rain.units}
to
Quote
                name: wxlegend.rain.rain,
                type: 'area',
                color: '#4040FF',
                yAxis: 1,
                tooltip: {valueSuffix: ' '+wxuom.rain.units}
and change the #4040FF to your desired color.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP