chartjs / chartjs-plugin-annotation

Annotation plugin for Chart.js
MIT License
607 stars 328 forks source link

Disabling `clip` on chart area and auto-positioning of the labels in line annotations #557

Closed stockiNail closed 2 years ago

stockiNail commented 2 years ago

The PR #523 added clip options in order to enable the annotation drawing even if part of them are outside of chart area.

The label configured in a line annotation are drawn in order to stay inside the chart area.

Now, with new clip option, the current behavior of the label should be kept as is if the clip option is set to true, otherwise the label could be drawn outside of chart area

stockiNail commented 2 years ago

I close this issue because possible implementation where the line and label can be drawn outside of chart area will be enabled in other PRs, already in draft