mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-30 11:03:58 +02:00
refactor
This commit is contained in:
@@ -10,7 +10,7 @@ export const chartLegend = (legend: InstanceType<typeof MkChartLegend>) => ({
|
||||
id: 'htmlLegend',
|
||||
afterUpdate(chart, args, options) {
|
||||
// Reuse the built-in legendItems generator
|
||||
const items = chart.options.plugins.legend.labels.generateLabels(chart);
|
||||
const items = chart.options.plugins!.legend!.labels!.generateLabels!(chart);
|
||||
|
||||
legend.update(chart, items);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user