Skip to content

Commit

Permalink
Improved code
Browse files Browse the repository at this point in the history
  • Loading branch information
asantibanez committed Nov 8, 2020
1 parent 0af61a2 commit e11c5ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/views/livewire-multi-line-chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ function multiLineChart() {
return
}
const seriesName = Object.keys(data)[Object.keys(data).findIndex((el, index) => index === seriesIndex)]
const point = data[seriesName][dataPointIndex]
const point = data[series[seriesIndex].name][dataPointIndex]
component.call('onPointClick', point)
}
}
Expand Down

0 comments on commit e11c5ca

Please sign in to comment.