chartjs / chartjs/chartjs-plugin-zoom

Zooming in on a line chart on the category axis makes the line disappear

Open
#816 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
623
Forks
331
Avg merge
7h 5m
Merged PRs (30d)
7

Description

I'm using a Chart.js (v4.4.1) in a React application with the usage of chartjs-plugin-zoom (v2.0.1) plugin to show some data in a line charts with one category axis and one linear axis for values.

Zooming in, in "xy" mode, until there is only one value on the category axis makes the line chart disappear.

without zoom:
![image](https://github.com/chartjs/chartjs-plugin-zoom/assets/6988965/1532eab8-04d6-490f-8ffe-cf6778192a66)

after 1st tick of zoom:
![image](https://github.com/chartjs/chartjs-plugin-zoom/assets/6988965/b4490d44-784c-400c-9e2c-b07ec05450cd)

after 2nd tick of zoom:
![image](https://github.com/chartjs/chartjs-plugin-zoom/assets/6988965/a4b8f65c-6855-48e0-a1fc-53d46fc3f455)

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.