c3js / c3js/c3

Showing or hiding a series in a line chart while an animation is taking place causes zoom to break

Open
#1,375 1 comment 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

If you have a line chart with multiple series like this…

![screen shot 2015-09-09 at 9 57 59 am](https://cloud.githubusercontent.com/assets/1134869/9748518/4c3b8ec8-56d9-11e5-83b6-a68bb470d198.png)

…and show or hide a series, the axis zooms to fit the content, like this…

![screen shot 2015-09-09 at 9 55 50 am](https://cloud.githubusercontent.com/assets/1134869/9748492/2238be48-56d9-11e5-89cd-6ccf80a69218.png)

…but if you show or hide again before the transition is complete, the zoom stops at the end of the first transition, and some data isn't shown.

![screen shot 2015-09-09 at 9 56 32 am](https://cloud.githubusercontent.com/assets/1134869/9748477/140252da-56d9-11e5-99a3-fcd76a108957.png)

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.