mirror of https://github.com/masayuki0812/c3.git
Dekai Zhang
9 years ago
committed by
Dávid Halász
1 changed files with 2 additions and 2 deletions
@ -1,4 +1,4 @@ |
|||||||
c3_chart_internal_fn.categoryName = function (i) { |
c3_chart_internal_fn.categoryName = function (i) { |
||||||
var config = this.config; |
var config = this.config, categoryIndex = Math.ceil(i); |
||||||
return i < config.axis_x_categories.length ? config.axis_x_categories[i] : i; |
return i < config.axis_x_categories.length ? config.axis_x_categories[categoryIndex] : i; |
||||||
}; |
}; |
||||||
|
Loading…
Reference in new issue