chartjs / chartjs/chartjs-plugin-annotation

Annotations that are following current Y values should not overlap

Open
#895 11 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
623
Forks
377
PR merge metrics
No merged PRs in 30d

Description

### Feature Proposal

When two plots have very close Y values, the annotations are overlapping and can hide each other, for example in our app:
![image](https://github.com/chartjs/Chart.js/assets/39587654/9115c840-a57c-43e6-88df-9dfdef40a409)

### Possible Implementation

Instead of overlapping, they should be on top of each other (ordered by y values), for example ([source](https://www.macrotrends.net/2528/dow-jones-vs-NASDAQ-chart)):
![image](https://github.com/chartjs/Chart.js/assets/39587654/e77cc11d-2675-493e-b545-14b663b37ca5)

Thanks!

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.