mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-06 16:26:52 +01:00
Avoid error if borderOpts.dash is undefined (#11907)
This commit is contained in:
committed by
GitHub
parent
ea88dba68d
commit
5d2dfbe68d
@@ -317,7 +317,7 @@ function drawRadiusLine(scale, gridLineOpts, radius, labelCount, borderOpts) {
|
||||
ctx.save();
|
||||
ctx.strokeStyle = color;
|
||||
ctx.lineWidth = lineWidth;
|
||||
ctx.setLineDash(borderOpts.dash);
|
||||
ctx.setLineDash(borderOpts.dash || []);
|
||||
ctx.lineDashOffset = borderOpts.dashOffset;
|
||||
|
||||
ctx.beginPath();
|
||||
|
||||
Reference in New Issue
Block a user