Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Is it possible to set the bar color based on the y value? #62

Closed
WANGZEQI123 opened this issue Apr 30, 2019 · 8 comments
Closed

Is it possible to set the bar color based on the y value? #62

WANGZEQI123 opened this issue Apr 30, 2019 · 8 comments

Comments

@WANGZEQI123
Copy link

The current color parameter in plotly_express is more like a group. What I want to do is to produce a bar plot like below, its bar color is proportional to the y value.
plot from API (3)

I wonder if there's a way to do it in plotly express? Or can I modify it use plotly update method?

Thank you so much!

@nicolaskruchten
Copy link
Contributor

This isn't possible at the moment but should be an easy addition for the next version :)

@nicolaskruchten
Copy link
Contributor

Will be part of the next release, tomorrow!

@kavyabgowda
Copy link

is it released

@nicolaskruchten
Copy link
Contributor

Yes indeed!

@kavyabgowda
Copy link

kavyabgowda commented Apr 17, 2020 via email

@nicolaskruchten
Copy link
Contributor

@kavyabgowda if you're using R then you should check out our R documentation at https://plotly.com/r/ ... this repository is about Plotly Express, which is a Python library :)

@kavyabgowda
Copy link

kavyabgowda commented Apr 20, 2020 via email

@ilyinss
Copy link

ilyinss commented Jan 21, 2021

can you show code? I need change bar colors based on values

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

No branches or pull requests

4 participants