We want to show live graphs from PRTG in our NOC screens but need them to have a different background color. How can I do this?
Can I set the graph background color of PNG graphs in PRTG?
Modified on 2025-06-10 12:08:02 +0200
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
There are two possibilities to control the color:
1. In order to set the color of all graphs created by PRTG please edit the system settings. Detailed instructions are in the manual of PRTG 8:
https://www.paessler.com/manuals/prtg8/system_website_settings.htm (search for "Background Color for Graphs")
2. If you are using PNGs files in your own web pages using PNG-URLs you can control the background color using the bgcolor parameter.
Sample URL:
http://10.0.0.157/chart.png?type=graph&[....]&bgcolor=%23ff0000
The bgcolor parameter must contain a CSS style color code, e.g. #000000 for black, #ffffff for white and must be URL encoded (# is converted to %23)
Note: Option 2 is implemented in PRTG 8.1.2 and later
Oct, 2010 - Permalink