Skip to content

Firefly III: a personal finances manager

Fix charts in IE

devlearner495158b9c9c8
diff --git a/public/js/ff/charts.js b/public/js/ff/charts.js
index a67009b729..aa01a761fd 100644
--- a/public/js/ff/charts.js
+++ b/public/js/ff/charts.js
@@ -88,7 +88,9 @@ const verticalLinePlugin = {
afterDatasetsDraw: function (chart, easing) {
if (chart.config.lineAtIndex) {
- chart.config.lineAtIndex.forEach(pointIndex => this.renderVerticalLine(chart, pointIndex));
+ chart.config.lineAtIndex.forEach(function(pointIndex) {
+ this.renderVerticalLine(chart, pointIndex);
+ }, this);
}
}
};