From 6a673c03b424ed80d411ab0b10ab74ba4d74239b Mon Sep 17 00:00:00 2001 From: Andy Dufilie Date: Wed, 1 Jun 2016 17:32:27 -0400 Subject: [PATCH] added check for null in c3_chart_internal_fn.expandArc --- src/arc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arc.js b/src/arc.js index 5abcdde..de1bcf0 100644 --- a/src/arc.js +++ b/src/arc.js @@ -143,7 +143,7 @@ c3_chart_internal_fn.expandArc = function (targetIds) { interval = window.setInterval(function () { if (!$$.transiting) { window.clearInterval(interval); - if ($$.legend.selectAll('.c3-legend-item-focused').size() > 0) { + if ($$.legend && $$.legend.selectAll('.c3-legend-item-focused').size() > 0) { $$.expandArc(targetIds); } }