Browse Source

Fix undefined when axis.x.tick.count specified on category axis - #935

pull/929/head
Masayuki Tanaka 10 years ago
parent
commit
d3d4c5d76b
  1. 3
      c3.js
  2. 2
      c3.min.js
  3. 3
      src/c3.axis.js

3
c3.js

@ -6657,7 +6657,8 @@
return newScale;
}
function textFormatted(v) {
return tickFormat ? tickFormat(v) : v;
var formatted = tickFormat ? tickFormat(v) : v;
return typeof formatted !== 'undefined' ? formatted : '';
}
function getSizeFor1Char(tick) {
if (tickTextCharSize) {

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

3
src/c3.axis.js

@ -48,7 +48,8 @@ function c3_axis(d3, params) {
return newScale;
}
function textFormatted(v) {
return tickFormat ? tickFormat(v) : v;
var formatted = tickFormat ? tickFormat(v) : v;
return typeof formatted !== 'undefined' ? formatted : '';
}
function getSizeFor1Char(tick) {
if (tickTextCharSize) {

Loading…
Cancel
Save