Browse Source

Fix y padding when formatted - #231

pull/246/head
Masayuki Tanaka 11 years ago
parent
commit
98a10e85f1
  1. 2
      c3.js
  2. 6
      c3.min.js

2
c3.js

@ -1647,7 +1647,7 @@
selectChart.select('svg').selectAll('.dummy') selectChart.select('svg').selectAll('.dummy')
.data([min, max]) .data([min, max])
.enter().append('text') .enter().append('text')
.text(function (d) { return d; }) .text(function (d) { return formatByAxisId(d.id)(d.value, d.id); })
.each(function (d, i) { widths[i] = this.getBoundingClientRect().width * paddingCoef; }) .each(function (d, i) { widths[i] = this.getBoundingClientRect().width * paddingCoef; })
.remove(); .remove();
return widths; return widths;

6
c3.min.js vendored

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