diff --git a/lib/core.js b/lib/core.js index 3da694b..219223c 100644 --- a/lib/core.js +++ b/lib/core.js @@ -73,7 +73,7 @@ module.exports = { classData.initializeChart = function(nextProps) { var el = ReactDOM.findDOMNode(this); var ctx = el.getContext("2d"); - var type = (chartType === 'PolarArea') ? 'polarArea':chartType.toLowerCase(); + var type = (chartType === 'PolarArea') ? 'polarArea' : chartType this.state.chart = new Chart(ctx, { type: type,