diff --git a/scripts/tools/letter_count/ChartBar.ts b/scripts/tools/letter_count/ChartBar.ts index 010922a8..22345298 100644 --- a/scripts/tools/letter_count/ChartBar.ts +++ b/scripts/tools/letter_count/ChartBar.ts @@ -65,7 +65,7 @@ export const ChartBar: ChartBase = { }, tooltip: { formatter () { - const c = this.point.name ?? this.x + const c = this.name ?? this.x const count = this.y return c + ' found ' + (count === 1 ? 'once' : count + ' times') diff --git a/scripts/tools/letter_count/ChartPie.ts b/scripts/tools/letter_count/ChartPie.ts index 852f6d22..55dc129e 100644 --- a/scripts/tools/letter_count/ChartPie.ts +++ b/scripts/tools/letter_count/ChartPie.ts @@ -39,7 +39,7 @@ export const ChartPie: ChartBase = { }, tooltip: { formatter () { - return (this.point as any).label + return (this as any).label }, borderWidth: 3, borderRadius: 6,