Skip to content

Commit

Permalink
Fix check type for pie/donut - #227
Browse files Browse the repository at this point in the history
  • Loading branch information
masayuki0812 committed May 16, 2014
1 parent ff8b9de commit 4c82496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions c3.js
Original file line number Diff line number Diff line change
Expand Up @@ -1963,10 +1963,10 @@
return hasType(targets, 'scatter');
}
function hasPieType(targets) {
return hasType(targets, 'pie');
return __data_type === 'pie' || hasType(targets, 'pie');
}
function hasDonutType(targets) {
return hasType(targets, 'donut');
return __data_type === 'donut' || hasType(targets, 'donut');
}
function hasArcType(targets) {
return hasPieType(targets) || hasDonutType(targets);
Expand Down
Loading

0 comments on commit 4c82496

Please sign in to comment.