Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Add labels to gauge always on tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Aug 29, 2022
1 parent 8b77916 commit 11640e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compose/types/chart/gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ export default class GaugeChart extends BaseChart {
})
}

private makeLabel ({ datasetIndex, index }: any, { datasets }: any): any {
private makeLabel ({ datasetIndex, index }: any, { datasets, labels }: any): any {
const dataset = datasets[datasetIndex]

return makeDataLabel({
prefix: labels[index],
value: dataset.data[index],
})
}
Expand Down

0 comments on commit 11640e6

Please sign in to comment.