Commit 4c824964 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix check type for pie/donut - #227

parent ff8b9de6
...@@ -1963,10 +1963,10 @@ ...@@ -1963,10 +1963,10 @@
return hasType(targets, 'scatter'); return hasType(targets, 'scatter');
} }
function hasPieType(targets) { function hasPieType(targets) {
return hasType(targets, 'pie'); return __data_type === 'pie' || hasType(targets, 'pie');
} }
function hasDonutType(targets) { function hasDonutType(targets) {
return hasType(targets, 'donut'); return __data_type === 'donut' || hasType(targets, 'donut');
} }
function hasArcType(targets) { function hasArcType(targets) {
return hasPieType(targets) || hasDonutType(targets); return hasPieType(targets) || hasDonutType(targets);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment