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

Can VueUiSparkHistogram configure individual colors for each data item? #73

Open
zcodecn opened this issue Oct 4, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@zcodecn
Copy link

zcodecn commented Oct 4, 2024

Currently, VueUiSparkHistogram allows configuring global gradient colors through style.bars.colors. Is it possible to configure individual colors for each data item while keeping the global gradient?

@graphieros graphieros added the enhancement New feature or request label Oct 4, 2024
@graphieros
Copy link
Owner

@zcodecn indeed, currently the same color logic is applied to all datapoints. I can add a color attribute on VueUiSparkHistogramDatasetItem that would override the global color config for a given datapoint, while keeping the gradient features. I will wait for further requests to work on this improvement, as you told me you would probably have more to ask ;)

@zcodecn
Copy link
Author

zcodecn commented Oct 4, 2024

Sure, you can release it after tomorrow.If I encounter any other issues during use today, I'll submit them as well.

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

No branches or pull requests

2 participants