Skip to content

Commit 19e3255

Browse files
committed
Fix for broken radar rotation
1 parent d30edc1 commit 19e3255

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Chart.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ var Chart = function(context){
534534
ctx.save();
535535
//translate to the centre of the canvas.
536536
ctx.translate(width/2,height/2);
537-
ctx.rotate(rotationDegree);
537+
538538
//We accept multiple data sets for radar charts, so show loop through each set
539539
for (var i=0; i<data.datasets.length; i++){
540540
ctx.beginPath();
@@ -568,6 +568,7 @@ var Chart = function(context){
568568
}
569569

570570
}
571+
ctx.rotate(rotationDegree);
571572

572573
}
573574
ctx.restore();

0 commit comments

Comments
 (0)