From 109d5c031bc839df35eaa212186ca147387a99f0 Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Thu, 23 May 2024 15:00:19 +0200 Subject: [PATCH] fix(Highcharts plugin): fix resetZoomButton alignment (#485) --- src/plugins/highcharts/renderer/helpers/config/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/highcharts/renderer/helpers/config/config.js b/src/plugins/highcharts/renderer/helpers/config/config.js index 7d454a15..93d5d3ed 100644 --- a/src/plugins/highcharts/renderer/helpers/config/config.js +++ b/src/plugins/highcharts/renderer/helpers/config/config.js @@ -1757,7 +1757,7 @@ export function prepareConfig(data, options, isMobile, holidays) { // Callback setExtremes used because of it obligatory invocation on every zoom event // setTimeout used because of absence resetZoomButton node in dom on first zoom event setTimeout(() => { - const text = this.chart.resetZoomButton?.text; + const text = this.chart?.resetZoomButton?.text; if (text) { text.translate(0, -6);