You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current implementation uses normalized values (constrained inside min/max), but this is not always desired. Eg. i use it for displaying sensor values, the gauges are constrained to display interested range, but values sometime goes out of these boundaries. All works OK, but the gauge stays to display normalized (min or max) value in label, which is false value of course.
Please, use normalized values only for internal calculations (drawing) and allow to show real values for label.
The text was updated successfully, but these errors were encountered:
To achieve this effect (when the numbers in the center can go beyond the limits but the gauge doesn't break) you can modify the "normalize" function to:
functionnormalize(value,min,limit){varval=Number(value);// if (val > limit) return limit;// if (val < min) return min;returnval;}
Current implementation uses normalized values (constrained inside min/max), but this is not always desired. Eg. i use it for displaying sensor values, the gauges are constrained to display interested range, but values sometime goes out of these boundaries. All works OK, but the gauge stays to display normalized (min or max) value in label, which is false value of course.
Please, use normalized values only for internal calculations (drawing) and allow to show real values for label.
The text was updated successfully, but these errors were encountered: