datavisyn/chartjs-chart-box-and-violin-plot

Tooltip Label along with Mean, Median, Q1, Q3 Data

HamsalekhaHR opened this issue · 1 comments

Please let me know how to add tooltip label with boxplot plugin in chart.js. I tried adding using below code example but mean, max, median, q1 and q3 values goes missing. Please suggest.


options: {
tooltips: {
callbacks: {
label: function (tooltipItems, data) {
return data.datasets[tooltipItems.datasetIndex].label + ': ' + data.datasets[tooltipItems.datasetIndex].data[tooltipItems.index] + ' €';
}
}

    }

Found an alternate way in C#, hence closing the issue