From 86ecca1c3878fc130fd5f8fa23e0499c1840e401 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sat, 22 Aug 2015 16:13:19 -0400 Subject: [PATCH] If setLineDash is not available, do not set it. --- src/elements/element.line.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/elements/element.line.js b/src/elements/element.line.js index c03f06684..62c316c95 100644 --- a/src/elements/element.line.js +++ b/src/elements/element.line.js @@ -114,7 +114,12 @@ // Now draw the line between all the points with any borders ctx.lineCap = vm.borderCapStyle || Chart.defaults.global.elements.line.borderCapStyle; - ctx.setLineDash(vm.borderDash || Chart.defaults.global.elements.line.borderDash); + + // IE 9 and 10 do not support line dash + if (ctx.setLineDash) { + ctx.setLineDash(vm.borderDash || Chart.defaults.global.elements.line.borderDash); + } + ctx.lineDashOffset = vm.borderDashOffset || Chart.defaults.global.elements.line.borderDashOffset; ctx.lineJoin = vm.borderJoinStyle || Chart.defaults.global.elements.line.borderJoinStyle; ctx.lineWidth = vm.borderWidth || Chart.defaults.global.defaultColor; -- 2.47.2