How do I have the temperature value in a different color?

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Graham Lawrence on 30th December 2013
First of all thank you very much for your efforts. On our home page - I wanted to show the value of a thermometer in a different color from that of the labels so I have modified Rgraph.thermometer.js to replace co.fillStyle = prop['chart.text.color']; with co.fillStyle = prop['chart.value.label.color']; in DrawLabels.

Posted by RGraph support on 30th December 2013
Hi there,

If you did this:

co.fillStyle = prop['chart.value.label.color'] || 'red';

You'd have a default value of red - so if you didn't set it would still work.


Add a reply

« Back to message list