Writing the temperature value with a different color

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« 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 - www.GandJLawrence.co.uk 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.



Richard, RGraph Support
www.rgraph.net
Please link to the RGraph website

Add a reply




« Back to message list