From 5bc85376a3d537ef3181a95cd07003443d0c4ea0 Mon Sep 17 00:00:00 2001 From: asantibanez Date: Wed, 1 Feb 2023 12:56:56 -0500 Subject: [PATCH] Extracted title --- resources/js/columnChart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/columnChart.js b/resources/js/columnChart.js index 023e525..f69c599 100644 --- a/resources/js/columnChart.js +++ b/resources/js/columnChart.js @@ -14,7 +14,7 @@ const columnChart = () => { this.chart.destroy() } - const title = component.get('columnChartModel.title'); + const title = component.get('columnChartModel.title') const animated = component.get('columnChartModel.animated') || false; const onColumnClickEventName = component.get('columnChartModel.onColumnClickEventName') const dataLabels = component.get('columnChartModel.dataLabels') || {}; @@ -84,7 +84,7 @@ const columnChart = () => { yaxis: { title: { - text: component.get('columnChartModel.title'), + text: title, } },