graphieros / vue-data-ui

An open source user-empowering data visualization Vue 3 components library for eloquent data storytelling
https://vue-data-ui.graphieros.com/
MIT License
1.08k stars 50 forks source link

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

Closed zcodecn closed 1 month ago

zcodecn commented 1 month ago

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 commented 1 month ago

@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 commented 1 month ago

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

graphieros commented 1 month ago

@zcodecn you can upgrade to v2.3.13 for this feature

zcodecn commented 1 month ago

Thx , I will try it out later