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

How to add empty values in violin plot? #39

Closed VladiGGeorgiev closed 2 years ago

VladiGGeorgiev commented 2 years ago

I am using violin chart (@sgratzl/chartjs-chart-boxplot 3.9.0). I am trying to show violins only for the X values that I have data. Recently I was using chartjs-chart-box-and-violin-plot 3.0.0 and for the missing data I was passing null values. Now the chart is showing diamonds on the bottom of the chart like there is 0 value.

I tried with different empty values: null, [], undefined, NaN.

How to pass data when I have empty values or is there any option that I am missing? I don't want to show any violin or diamond in the columns without data.

violin-chart-null violin-data