Browse Source

Fix global x tick culling - #186

pull/200/merge
Masayuki Tanaka 11 years ago
parent
commit
fdbfc05e6a
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -3238,14 +3238,14 @@
break;
}
}
d3.selectAll('.' + CLASS.axisX + ' .tick text').each(function (e) {
svg.selectAll('.' + CLASS.axisX + ' .tick text').each(function (e) {
var index = tickValues.indexOf(e);
if (index >= 0) {
d3.select(this).style('display', index % intervalForCulling ? 'none' : 'block');
}
});
} else {
d3.selectAll('.' + CLASS.axisX + ' .tick text').style('display', 'block');
svg.selectAll('.' + CLASS.axisX + ' .tick text').style('display', 'block');
}
}

2
c3.min.js vendored

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