Browse Source

Fix check type for pie/donut - #227

pull/246/head
Masayuki Tanaka 11 years ago
parent
commit
4c824964bc
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -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);

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save