As balala demonstrated the line meter does not correctly use the MinValue setting of a measure as the zero value. The measure does return a correct percentage value which can be seen in a string meter bound to the measure, but a line meter bound to that same measure uses 0 as the baseline no matter what the MinValue of the measure is set to be.

An additional measure that calculates a percentage value can be used to provide a zero based percentage value for use in line meters (as a work around) until this is addressed. You can use either "Formula" in [MeasureCalcPercent]; if you use the percentage section variable, you need to use "DynamicVariables=1". That is not needed if you use the second "Formula" option.

Code: Select all

```
; Demonstrates the issue with line meters not recognizing a measures MminValue as the "zero value".
; Using an additional measure to return 0~100 for use in line meters is a workaround
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
LowValue=1000
HighValue=2000
Range=(#HighValue#-#LowValue#)
; This measure returns the actual values and the correct percentual value for string meters. But that percentual value is not being detected correctly in line meters
[MeasureCalc]
Measure=Calc
Formula=Random
LowBound=#LowValue#
HighBound=#HighValue#
AverageSize=3
DynamicVariables=1
MinValue=#LowValue#
MaxValue=#HighValue#
; Returns a percentage (0~100) for any value in a range of numbers
[MeasureCalcPercent]
Measure=Calc
Formula=[MeasureCalc:%]
;Formula=((MeasureCalc-#LowValue#)/#Range#*100)
MinValue=0
MaxValue=100
DynamicVariables=1
[MeterLine]
Meter=Line
MeasureName=MeasureCalc
W=300
H=100
LineCount=1
LineColor1=255,255,255,255
LineColor2=255,0,0,255
AutoScale=0
SolidColor=47,47,47,255
AntiAlias=1
[MeterCalc]
Meter=String
MeasureName=MeasureCalc
Percentual=1
Y=5R
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=%1%
[MeterLinePercent]
Meter=Line
MeasureName=MeasureCalcPercent
X=r
Y=5R
W=300
H=100
LineCount=1
LineColor1=255,255,255,255
LineColor2=255,0,0,255
AutoScale=0
SolidColor=47,47,47,255
AntiAlias=1
[MeterPercent]
Meter=String
MeasureName=MeasureCalcPercent
Percentual=1
Y=5R
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=%1%
```

Here is a demo that shows the difference in line meter displays when using a non-zero MinValue measure (top meter) and using a measure that calculates a percent (0~100) value, of the non-zero MinValue measure, for use in line meters (bottom meter).

line2.gif

**EDIT:** JSMorley is on to something going on with Scale, because even the high values are being displayed in the top line meter, just not based on a 0~100 scale like the bottom meter shows. I am sure one of the code-jockeys will find the answer. The Bar meter seems to use the values correctly, but not the line meter.

Has anyone tested a histogram meter to see if it has the same issues?

**EDIT2:** The histogram meter does not work if the bound measure does not return a percentual (0~100) value. So even though a measure may have Min/Max values, it appears the line meter

*and* histogram meters are not using the percentual values of "non-zero MinValue" measures. The use of an additional measure to return a percentage value of measures is the simplest solution for now.

You do not have the required permissions to view the files attached to this post.