Mark:
I am using version 2.6.3 and trying to add a logo to the gauges. I started by editing gauges.js but all I did was delete the comment codes as follows:
// Logo images are used to 'personalise' the gauge backgrounds
// To add a logo to a gauge, add the parameter:
params.customLayer = _imgBackground;
// to the corresponding drawXxxx() function below.
//
// These are for demo only, to add them remove the comments around the following lines, and
// the _imgBackground definition line above...
_imgBackground = document.createElement('img'); // small logo
$(_imgBackground).attr('src', config.imgPathURL + 'logoSmall.png');
// End of logo images
I also uncommented line 191 as follows:
_imgBackground, // Uncomment if using a background image on the gauges */
The result was that none of the gauges displayed. Are the blank lines a problem? The logoSmall.png is in the same folder as the background image I am using and it displays properly. Can you tell me what am I doing wrong?
Thanks.