Skip to content

Commit

Permalink
fix: avoid ES2022 functions (#1300) (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott authored Sep 29, 2022
1 parent ce78a51 commit 56951b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/visualizations/config/generators/highcharts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ function drawLegendSymbolWrap() {
this.chart.renderer
.path(['M', x, ys, 'A', 1, 1, 0, 0, 0, x, ye, 'V', ys])
.attr({
fill: legends.at(legends.length >= 5 ? 1 : 0).color,
fill: legends[legends.length >= 5 ? 1 : 0].color,
})
.add(this.legendGroup)
this.chart.renderer
.path(['M', x, ye, 'A', 1, 1, 0, 0, 0, x, ys, 'V', ye])
.attr({
fill: legends.at(legends.length >= 5 ? -2 : -1).color,
fill: legends[
legends.length >= 5
? legends.length - 2
: legends.length - 1
].color,
})
.add(this.legendGroup)
} else {
Expand Down

0 comments on commit 56951b4

Please sign in to comment.