Skip to content

Gauge - Incorrect value displayed if value outside range of gauge #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
henrykeithturner opened this issue Jun 25, 2020 · 0 comments
Closed

Comments

@henrykeithturner
Copy link

Hi all,

I've noticed that if the value plotted on daq.gauge exceeds the max or min value of the gauge, then the value displayed also sets to being equal to the max or min value, rather than displaying the actual value. This can be misleading when extreme instances occur. I've attached an example below, where the values are set outside the limits, causing incorrect numbers to be displayed.

I was also wondering if it would be better for the pointer to point slightly beyond the limits of the gauge in this case, to indicate the value has gone beyond the limit.

Thanks!

import dash
import dash_daq as daq
import dash_html_components as html

app = dash.Dash(__name__)

app.layout = html.Div([
    daq.Gauge(
        label="Value is greater than max limit",
        min=0,
        max=10,
        value=15,
        showCurrentValue=True,
    ),
    daq.Gauge(
        label="Value is lower than min limit",
        min=0,
        max=10,
        value=-5,
        showCurrentValue=True,
    ),
])


if __name__ == '__main__':
    app.run_server(debug=True)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant