c3js / c3js/c3

Using tick format on y-axis results in duplicate values

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

Description

I have a chart that is displaying whole numbers, and in this case the numbers range from 0 to 3. I am applying a tick format as such:
y: {
tick: {
format: d3.format('d')
}
}

c3 is adding ~7 ticks and because of the format, there are duplicate numbers.
![timeseries](https://user-images.githubusercontent.com/669410/37916761-b24333cc-30ea-11e8-8453-4da1f73590b7.jpg)

* **C3 version**: 0.5.1
* **D3 version**: 4.13.0
* **Browser**: Chrome
* **OS**: macOS

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.