Browse Source

Fixed using numeric values as category names.

pull/267/head
Jason Xun Xu 10 years ago
parent
commit
fef7457987
  1. 3
      c3.js
  2. 2
      c3.min.js

3
c3.js

@ -4897,8 +4897,7 @@
} }
return newScale; return newScale;
} }
function textFormatted(i) { function textFormatted(v) {
var v = isCategory && i < categories.length ? categories[i] : i;
return tickFormat ? tickFormat(v) : v; return tickFormat ? tickFormat(v) : v;
} }
function axis(g) { function axis(g) {

2
c3.min.js vendored

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