Browse Source

Skip redraw if no targets to show

pull/104/head
Masayuki Tanaka 11 years ago
parent
commit
17237f6ce5
  1. 5
      c3.js
  2. 2
      c3.min.js

5
c3.js

@ -2743,6 +2743,11 @@
var duration, durationForExit, durationForAxis;
var targetsToShow = filterTargetsToShow(c3.data.targets);
// abort if no targets to show
if (targetsToShow.length === 0) {
return;
}
options = isDefined(options) ? options : {};
withY = isDefined(options.withY) ? options.withY : true;
withSubchart = isDefined(options.withSubchart) ? options.withSubchart : true;

2
c3.min.js vendored

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