Skip to content

Commit

Permalink
Extracted value into variable
Browse files Browse the repository at this point in the history
  • Loading branch information
asantibanez committed Feb 1, 2023
1 parent ce43d0b commit cd56963
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/js/multiColumnChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const multiColumnChart = () => {
this.chart.destroy()
}

const title = component.get('columnChartModel.title')
const stacked = component.get('columnChartModel.isStacked');
const animated = component.get('columnChartModel.animated');
const onColumnClickEventName = component.get('columnChartModel.onColumnClickEventName')
Expand Down Expand Up @@ -81,7 +82,7 @@ const multiColumnChart = () => {

yaxis: {
title: {
text: component.get('columnChartModel.title'),
text: title,
}
},

Expand Down

0 comments on commit cd56963

Please sign in to comment.