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

[Feature request] Different color for individual bars #17

Open
bluepuma77 opened this issue Nov 29, 2024 · 2 comments
Open

[Feature request] Different color for individual bars #17

bluepuma77 opened this issue Nov 29, 2024 · 2 comments

Comments

@bluepuma77
Copy link

Would it be possible to have different colors for individual bars?

let labels = [
  "2005-01-01",
  "2005-01-02",
  "2005-01-03",
  "2005-01-04",
  "2005-01-05"
]
let values = [
  25,
  20,
  18,
  17,
  21
]
let colors = [
  'green',
  'green',
  'orange',
  'orange',
  'green'
]
@Mitcheljager
Copy link
Owner

Sure, sounds reasonable

@oscmejia
Copy link

oscmejia commented Dec 4, 2024

it could also be a function, that can be used to calculate color or opacity for each bar, based on its value.

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

No branches or pull requests

3 participants