Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Implement color_discrete_sequence #275

@tpvasconcelos

Description

@tpvasconcelos

Implement and support a new color_discrete_sequence parameter.

From the Plotly docs:

color sequences are lists of colors to be mapped onto discrete data values. No interpolation occurs when using color sequences, unlike with continuous color scales, and each color is used as-is.

  • Support passing color sequences from px.colors.qualitative.* (e.g., px.colors.qualitative.Plotly) (REF)
  • Support passing any list of CSS colors (e.g., ['#636EFA', 'rgb(10, 10, 10)', 'red', ...] (REF)
  • Note this behaviour from Plotly and how it can be relevant for our project and our implementation of color_discrete_sequence: "If your color sequence has fewer colors than the number of unique values in the column you are mapping to color, the colors will cycle through and repeat"

Metadata

Metadata

Assignees

No one assigned

    Labels

    COLORRelated to colouring optionsenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions