sgratzl / chartjs-chart-boxplot

Chart.js Box Plots and Violin Plot Charts
https://www.sgratzl.com/chartjs-chart-boxplot/
MIT License
107 stars 24 forks source link

Violin chart does not work when config.data.labels is empty #116

Closed RudeySH closed 5 months ago

RudeySH commented 5 months ago

I am upgrading to chart.js 4.x, and switching over from the original repo to this maintained fork.

I ran into an unexpected issue where my violin chart did not render until I added labels: [''] to my my config. image

In the original repo, labels was not required. As a workaround I am using an empty string at the moment.

sgratzl commented 5 months ago

do you need the label when you plot a normal bar chart using chart.js 4.x?

RudeySH commented 5 months ago

I just tested it with a normal bar chart. I found that those also don't render when no labels are provided.

sgratzl commented 5 months ago

I found that those also don't render when no labels are provided. that would indicate that it is a chart.js core thing and thus not related to this plugin itself. Closing, please open your question in chart.js directly.