I have a Line meter that's part of a weather tracking skin I made, and with the onset of actual cold temperatures, I've started to see negative numbers come into play. However, it seems the Line meter isn't designed with these in mind, since any value of 0 or below gets put into the same flat line.
Here's the code;
MinValue and MaxValue need to be set on the measure that provides the value to the meter.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
That works, but now my Line meter doesn't have the same range it used to have (in terms of how much it went up or down)... I assume I can just reduce the dividing number to improve this?
Yes, the parenthesis are there for a reason. Also, this assumes that MaxValue is positive.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
The range should still be the same. You wanted a a range of 40 but you wanted indication of values below 0. Zero should now be at around 25% of the meter size, so values below that would show less than 25% of the meter. A screen shot of what you are trying to accomplish might help us help you.
dragonmage wrote:The range should still be the same. You wanted a a range of 40 but you wanted indication of values below 0. Zero should now be at around 25% of the meter size, so values below that would show less than 25% of the meter. A screen shot of what you are trying to accomplish might help us help you.
Ah yeah, I get the idea... but thing is, at no point will I ever need the full range of temperatures between -10° and 30° (since the weather here isn't ever that wild). Before winter came, the Line meter worked fine since it had automatic scaling so it used the most of its height to display whatever temperature variations occured; just now that the values go below 0 it's presented a problem. Ideally what I want is the same behaviour it had before it had to consider negative values, but with negative values.