Skip to content

Invalid property for indicator.Gauge: steps #1713

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
Mahdis-z opened this issue Aug 7, 2019 · 2 comments
Closed

Invalid property for indicator.Gauge: steps #1713

Mahdis-z opened this issue Aug 7, 2019 · 2 comments

Comments

@Mahdis-z
Copy link
Contributor

Mahdis-z commented Aug 7, 2019

Apparently there is a typo (stepss instead of steps). "stepss" is in the list of valid attributes.

import plotly.graph_objects as go

fig = go.Figure(data = go.Indicator(mode = "number+gauge+delta", value = 180, 
delta = {'reference': 200}, domain = {'x': [0.25, 1], 'y': [0.08, 0.25]},
title = {'text': "Revenue"}, gauge = {'shape': "bullet", 'axis': {'range': [None, 300]},
'threshold': {'line': {'color': "black", 'width': 2}, 'thickness': 0.75, 'value': 170}, 
'steps': [{'range': [0, 150], 'color': "gray"}, {'range': [150, 250],
'color': "lightgray"}], 'bar': {'color': "black"}}))

fig.update_layout(width = 300, height = 300, margin = {'t': 0, 'b':0, "l":0, "r":0})
fig.show()

and the error is:
ValueError: Invalid property specified for object of type plotly.graph_objs.indicator.Gauge: 'steps'

@nicolaskruchten
Copy link
Contributor

Will be fixed in the next JS release: plotly/plotly.js#4115

@gvwilson
Copy link
Contributor

Hi - we are currently trying to tidy up Plotly's public repositories to help us focus our efforts on things that will help users most. Since this issue has been sitting for several years, I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our backlog. Thanks for your help - @gvwilson

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

3 participants