Skip to content
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

Implement color_discrete_sequence #275

Open
3 tasks
Tracked by #226
tpvasconcelos opened this issue Nov 18, 2024 · 0 comments
Open
3 tasks
Tracked by #226

Implement color_discrete_sequence #275

tpvasconcelos opened this issue Nov 18, 2024 · 0 comments
Labels
COLOR Related to colouring options enhancement New feature or request

Comments

@tpvasconcelos
Copy link
Owner

tpvasconcelos commented Nov 18, 2024

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"
@tpvasconcelos tpvasconcelos changed the title Implement and support a new parameter. Implement color_discrete_sequence Nov 18, 2024
@tpvasconcelos tpvasconcelos added the COLOR Related to colouring options label Nov 18, 2024
@tpvasconcelos tpvasconcelos added this to the Release 0.3.0 🚀 milestone Nov 18, 2024
@tpvasconcelos tpvasconcelos added the enhancement New feature or request label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COLOR Related to colouring options enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant