We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This code will return a plotly graph with a dropdown menu where you can choose different COVID-19 related data (New Cases Total, New Cases Daily, etc)
Using the dropdown menu returns the correct values but assigns the same color to all of them (blue)
Create a dictionary for every column (here just for the first two) and assign a specific color to each
# assign colors to column using a dictionary colors = dict('casos_novos_t':'coral', 'casos_novos_d':'darkviolet')
Use marker_color to force the use of a specific color
marker_color
However marker_color = colors returns an error
marker_color = colors
Without a dropdown menu plotly generates one color for each column, automatically.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
WHAT THE CODE DOES SO FAR
This code will return a plotly graph with a dropdown menu where you can choose different COVID-19 related data (New Cases Total, New Cases Daily, etc)
PROBLEM
Using the dropdown menu returns the correct values but assigns the same color to all of them (blue)
NOT WORKING SOLUTION
Create a dictionary for every column (here just for the first two) and assign a specific color to each
Use
marker_color
to force the use of a specific colorHowever
marker_color = colors
returns an errorINSIGHT
Without a dropdown menu plotly generates one color for each column, automatically.
The text was updated successfully, but these errors were encountered: