Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

value range

$
0
0

Hey,

 

i was hopeing that someone might could help me.
I would like a script which makes value different colors like;

-0.2 > 0.2 = text will be black
0.21 > 0.7 = text will be orange
0.7 > 100 = text will be red


I have tried this:

if (event.target.textColor =event.value>=-0.2 && event.value<=0.2) 

    event.target.fillColor = color.orange; 

else if (event.target.textColor =event.value>=-0.2 && event.value<=0.2) 

 

But it dosen't work the way i would

 

Thanks in advance!


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>