vue-chart-3 icon indicating copy to clipboard operation
vue-chart-3 copied to clipboard

Advanced axes, multi dataset, and histogram capabilities failure

Open aentwist opened this issue 2 years ago • 3 comments

Describe the bug

I need an advanced histogram, which I have created in Chart.js. When moving the exact same to vue-chart-3, it does not work. The reproduction uses two methods to showcase differences; Vue + vue-chart-3 and Vue + Chart.js, respectively.

To Reproduce

https://github.com/aentwist/vue-chart-3-histogram

Use yarn && yarn serve.

Version of vue-chart-3

^2.1.2

Version of Vue

Vue 2

aentwist avatar Mar 31 '22 14:03 aentwist

Hi @aentwist Thanks for the reproductions it's very helpful, I will try to find the time to look at it

victorgarciaesgi avatar Mar 31 '22 15:03 victorgarciaesgi

By manually interacting with Chart.js and avoiding vue-chart-3, I was able to get things working. This can be considered a workaround.

aentwist avatar Mar 31 '22 15:03 aentwist

Note also that since Chart.js fails to provide a histogram type, people bend things a bit to create histograms. This might not fall under intended use, in which case this issue could be closed. See https://github.com/chartjs/Chart.js/issues/3900.

aentwist avatar Mar 31 '22 15:03 aentwist