Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

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

Closed

Description

@WANGZEQI123

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!

Activity

  1. nicolaskruchten commented on Apr 30, 2019

    @nicolaskruchten
    Contributor

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

  2. nicolaskruchten commented on May 6, 2019

    @nicolaskruchten
    Contributor

    Will be part of the next release, tomorrow!

  3. kavyabgowda commented on Apr 17, 2020

    @kavyabgowda

    is it released

  4. nicolaskruchten commented on Apr 17, 2020

    @nicolaskruchten
    Contributor

    Yes indeed!

  5. kavyabgowda commented on Apr 17, 2020

    @kavyabgowda
  6. nicolaskruchten commented on Apr 17, 2020

    @nicolaskruchten
    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 :)

  7. kavyabgowda commented on Apr 20, 2020

    @kavyabgowda
  8. ilyinss commented on Jan 21, 2021

    @ilyinss

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions