Hello,
Found ..... well if you change something you should also save it that makes it easier



Moderator: Mattk
Hello,
Code: Select all
function ColorPM25(a) {
if (a>=0 && a<=50) {ColorCalc='#80f000';}
else if (a>50 && a<=100) {ColorCalc='#b0d000';}
else if (a>100 && a<=150) {ColorCalc='#d0d000';}
else if (a>150 && a<=200) {ColorCalc='#ffa000';}
else if (a>200 && a<=300) {ColorCalc='#ff7000';}
else if (a>300 && a<=400) {ColorCalc='#ff3000';}
else if (a>400 && a<=500) {ColorCalc='#703232';}
else {ColorCalc='#444444';}
return ColorCalc;
}
Code: Select all
dataPoints1.push({label: rowData[1],y:parseFloat(rowData[18]),color:ColorPM25(parseFloat(rowData[18]))});
Hi Brian,weatherist34 wrote: ↑Wed Oct 28, 2020 1:43 pm unfortunately its not giving you all the info to actually make it work properly .
however Graham wait till next week as per email .. you will have colored charts in all charts in Version 10(EN) pre release which basically is fully working at present just need to complete the setup screen options.
just hang in there all will come good this version is so slim and versatile you just may enjoy some of the other features ...caution ENGLISH only supported in version 10. caution requires the primary station to be Davis Hardware not compatible with other brands /primary sensors must be Davis ..
screenshots
colorcharts.jpg
colorcharts1.jpg
Just when we have such a good level of language support, don't you want to support it anymore? I think I have to cope with that, can I do something to change your mind?weatherist34 wrote: ↑Wed Oct 28, 2020 1:43 pm ...caution ENGLISH only supported in version 10. caution requires the primary station to be Davis Hardware not compatible with other brands /primary sensors must be Davis ..