[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [php-weathermap] dynamic text based labels..
- From: andrew warren <c7borg@xxxxxxxxxxx>
- Subject: Re: [php-weathermap] dynamic text based labels..
- Date: Mon, 3 Dec 2007 08:52:09 +0000 (GMT)
Excellent.. this will be really useful for my colour-blind colleagues ;) ----- Original Message ---- From: Howard Jones <howie@xxxxxxxxxx> To: php-weathermap@xxxxxxxxxx Sent: Sunday, 2 December, 2007 2:20:12 PM Subject: Re: [php-weathermap] dynamic text based labels.. andrew warren wrote: > sounds exciting but all I want to do is replace the value with a string of text depending on the value.. it could tie in with the legend eg: > 0 10 % = very poor > 10 20 % = poor > 30 40 % = fair > 40 50 % = average > etc etc.. > This is in subversion and will be 0.95, like so: SCALE myscale 0 10 255 255 255 quiet.png SCALE myscale 10 50 255 255 255 255 0 0 average.png SCALE myscale 50 85 255 0 0 255 255 0 busy.png SCALE myscale 85 100 255 255 0 0 255 0 really_full.png The text after the colour can contain spaces, and will end up in {node:this:inscaletag} and {node:this:outscaletag} (or link of course). It makes selecting icons based on a value a little bit cleaner too, which is what I have been playing with it for. Howie ___________________________________________________________ Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/
- Prev by Date: Re: [php-weathermap] dynamic text based labels..
- Next by Date: Feature/request
- Previous by thread: Re: [php-weathermap] dynamic text based labels..
- Next by thread: Almost working
- Index(es):