From edec7b869a4d7b98bcaa8d7085445ff23e13a2df Mon Sep 17 00:00:00 2001 From: Max Kolyanov Date: Fri, 20 May 2016 20:31:26 +0300 Subject: [PATCH] Remove lowercase transform for chart type --- lib/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,