Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Fix for broken radar rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nnnick committed Mar 25, 2013
1 parent d30edc1 commit 19e3255
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ var Chart = function(context){
ctx.save();
//translate to the centre of the canvas.
ctx.translate(width/2,height/2);
ctx.rotate(rotationDegree);

//We accept multiple data sets for radar charts, so show loop through each set
for (var i=0; i<data.datasets.length; i++){
ctx.beginPath();
Expand Down Expand Up @@ -568,6 +568,7 @@ var Chart = function(context){
}

}
ctx.rotate(rotationDegree);

}
ctx.restore();
Expand Down

0 comments on commit 19e3255

Please sign in to comment.