c3js / c3js/c3

Issue between axis.rotated and axis.x.tick.format

Open
#1,798 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Version: 0.4.11 / current dev
Browser: Tested only on Chrome 52

I may be wrong since this is not really obvious from the [documentation](http://c3js.org/reference.html#axis-x-tick-format) but from what I understand the `axis.x.tick.format` callback receive the index of the tick to format.

From what I saw, it works well, I receive 0, 1, 2, 3, ...

Except when I set the `axis.rotated` to `true`.

For a chart with a single `x` tick I get:

![capture d ecran 2016-08-09 a 15 10 39](https://cloud.githubusercontent.com/assets/230462/17517376/76b86a82-5e43-11e6-84e8-cec191f7eaa3.png)

To reproduce: https://jsfiddle.net/mcd6ucge/136/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.