Skip to content

Commit

Permalink
fix(Highcharts plugin): fix tooltip in packedbubble charts (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Oct 6, 2023
1 parent 7e7c83d commit c4d3e91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/highcharts/renderer/helpers/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c4d3e91

Please sign in to comment.