It is currently March 28th, 2024, 4:40 pm

How to get the autoscale value?

Report bugs with the Rainmeter application and suggest features.
Post Reply
giuliano
Posts: 4
Joined: November 30th, 2009, 5:38 pm

How to get the autoscale value?

Post by giuliano »

Hey guys,

i've got the following prob:
I want to show the down- and upstream in a column diagram. That already works.
Because of fluctuation i turned autoscale=1. So far so good, but i wanna know what's the current scale value (max. y-axis value).
My intention is to show these values on top of the y-axis, due to have a reference value when looking at per sec updating chart.
Of course this scale value should be updated every sec as well - but that's easy.

So does sb know how to get this scale value, which is currently set by "autoscale"?

tia
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: How to get the autoscale value?

Post by Chewtoy »

What are you really after?
Getting the value, or just the scale on the value?
Like, if you got 1024bit down, autoscale will make it 1kb, and then you just want the "k" showing?
Or do you want the entire number?
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: How to get the autoscale value?

Post by Alex2539 »

On a graph, it's not that simple. When autoscale is set on a string meter, it will simply divide it by 1000 when it gets too high. With a line meter or histogram, it instead just rescales everything according to the highest value. I'm not sure how you would get that number.
giuliano
Posts: 4
Joined: November 30th, 2009, 5:38 pm

Re: How to get the autoscale value?

Post by giuliano »

Alex2539 hit the mark. One histogram shows the netin, the other one reveals the netout.
I either don't know how to get this number. That's the problem.

but thanks for making clear, what im looking for.
maybe someone else knows how to get it. i hope so.
Post Reply