Closed SeppPenner closed 4 years ago
Following https://www.chartjs.org/docs/latest/charts/:
I have asked the guys from Chart.Js to check this as well and tell us, what's the idea behind this: https://github.com/chartjs/Chart.js/issues/6452.
As already mentioned in https://github.com/Joelius300/ChartJSBlazor/issues/65 (https://github.com/Joelius300/ChartJSBlazor/pull/70), the wrong generateLabels
function was hooked up for both pie- and polar-area- charts. Did that maybe influence your testing? If so, could you re-test and confirm the statements above so we're sure these aren't needed?
I have tested this independently from our library using a JS fiddle (As you can see above in the links). So, there is no need to re-test it.
After reading https://github.com/chartjs/Chart.js/blob/376da2131e8dcc10f3e9a7faae9f5f684a2402f2/src/index.js#L75: Can we assume that this will be only supported for a short time?
What will only be supported for a short time? The datalabel plugin? We currently don't have support for this anyway so this shouldn't break anything once deprecated right?
I don't understand their code or how it's structured. Is this for the datalabel plugin? I thought it was for the chart title^^
But this issue is about labels on dataset level. What does this have to do with chart titles then? Does this really belong in this issue?
EDIT:
Is this about this title? If so, I don't think it belongs here.
Ah, you're right. This was the label on dataset level, not the title on chart level.
Will be tracked by https://github.com/mariusmuntean/ChartJs.Blazor/issues/43 after the merge.
From https://github.com/Joelius300/ChartJSBlazor/issues/40#issuecomment-519690615:
We need to investigate whether the label on dataset basis is valid for all kind of charts.
For
pie
anddoughnut
, it has no effect: https://jsfiddle.net/g1anoety/ without the datalabels plugin enabled. (I would remove this for all charts where it's not yet needed and add it again if it's needed after we managed to get https://github.com/Joelius300/ChartJSBlazor/issues/34 done).