From c4d3e91c2e42b9f257b4d44cef3715c23c41efbe Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Fri, 6 Oct 2023 18:20:21 +0200 Subject: [PATCH] fix(Highcharts plugin): fix tooltip in packedbubble charts (#322) --- src/plugins/highcharts/renderer/helpers/config/config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/highcharts/renderer/helpers/config/config.js b/src/plugins/highcharts/renderer/helpers/config/config.js index 17ffafbc..5e0b2f49 100644 --- a/src/plugins/highcharts/renderer/helpers/config/config.js +++ b/src/plugins/highcharts/renderer/helpers/config/config.js @@ -617,8 +617,8 @@ function getTooltip(tooltip, options, comments, holidays) { json.tooltipHeader = chart.time.dateFormat(xDateFormat, this.x); } else if ( - extendedPoint.point?.options?.xFormatted ?? - (extendedPoint.x || extendedPoint.x === 0) + extendedPoint?.point?.options?.xFormatted ?? + (extendedPoint?.x || extendedPoint?.x === 0) ) { const customTooltipHeaderFormatter = options?.highcharts?.tooltipHeaderFormatter; const tooltipHeaderStringValue = String( @@ -661,7 +661,7 @@ function getTooltip(tooltip, options, comments, holidays) { const tooltipOptions = point.series.tooltipOptions || {}; const userOptions = point.series.userOptions || {}; - const customTooltipSeriesName = point.point.custom?.tooltipPointName; + const customTooltipSeriesName = point?.point?.custom?.tooltipPointName; const obj = { selectedSeries: point.series.index === chart.userOptions._activeSeries,