Skip to content

Commit

Permalink
updated polar charts to read custom angles from "chart.options.elemen…
Browse files Browse the repository at this point in the history
…ts.arc.angle" instead of "chart.options.angle"
  • Loading branch information
slinhart committed Jun 5, 2018
1 parent 45d3bc0 commit 4a42e41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/controllers/controller.polarArea.js
Expand Up @@ -244,7 +244,7 @@ module.exports = function(Chart) {
};

return helpers.options.resolve([
me.chart.options.angle,
me.chart.options.elements.arc.angle,
(2 * Math.PI) / count
], context, index);
}
Expand Down
10 changes: 7 additions & 3 deletions test/fixtures/controller.polarArea/angle-array.json
Expand Up @@ -16,9 +16,13 @@
}]
},
"options": {
"angle": [
1.0566, 1.7566, 1.0566, 2.1566, 0.2566
],
"elements": {
"arc": {
"angle": [
1.0566, 1.7566, 1.0566, 2.1566, 0.2566
]
}
},
"responsive": false,
"legend": false,
"title": false,
Expand Down

0 comments on commit 4a42e41

Please sign in to comment.