Browse Source

added check for null in c3_chart_internal_fn.expandArc

pull/1715/head
Andy Dufilie 9 years ago
parent
commit
6a673c03b4
  1. 2
      src/arc.js

2
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);
}
}

Loading…
Cancel
Save