Skip to content

Commit cd56963

Browse files
committed
Extracted value into variable
1 parent ce43d0b commit cd56963

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/js/multiColumnChart.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const multiColumnChart = () => {
1414
this.chart.destroy()
1515
}
1616

17+
const title = component.get('columnChartModel.title')
1718
const stacked = component.get('columnChartModel.isStacked');
1819
const animated = component.get('columnChartModel.animated');
1920
const onColumnClickEventName = component.get('columnChartModel.onColumnClickEventName')
@@ -81,7 +82,7 @@ const multiColumnChart = () => {
8182

8283
yaxis: {
8384
title: {
84-
text: component.get('columnChartModel.title'),
85+
text: title,
8586
}
8687
},
8788

0 commit comments

Comments
 (0)