We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 954ad91 commit de3f351Copy full SHA for de3f351
src/core/utils.ts
@@ -159,7 +159,7 @@ export function getChartLegendItems(chart: Highcharts.Chart): readonly LegendIte
159
}
160
};
161
const addPointItem = (point: Highcharts.Point, isSecondary: boolean) => {
162
- if (point.series.type === "pie") {
+ if (point?.series?.type === "pie") {
163
legendItems.push({
164
id: getPointId(point),
165
name: point.name,
0 commit comments