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

colorPaletteOffset prop #3091

Open
archiewood opened this issue Feb 11, 2025 · 0 comments
Open

colorPaletteOffset prop #3091

archiewood opened this issue Feb 11, 2025 · 0 comments
Labels
ui/data Charts, tables and other viz

Comments

@archiewood
Copy link
Member

archiewood commented Feb 11, 2025

When referencing a color Palette in a chart, it can be desirable to start from a colour other than the first one that is defined in the array.

Desired syntax

<BarChart
   colorPalette=default
   colorPaletteOffset=1
/>

= start from the second color defined in the colorPalette array

This prop should be available for all components that accept a colorPalette

@archiewood archiewood added bug Something isn't working to-review Evidence team to review ui/data Charts, tables and other viz and removed bug Something isn't working to-review Evidence team to review labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui/data Charts, tables and other viz
Projects
None yet
Development

No branches or pull requests

1 participant