Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Remove lowercase transform for chart type #116

Open
wants to merge 1 commit into
base: chartjs-v2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down