guan404ming commented on PR #60877:
URL: https://github.com/apache/airflow/pull/60877#issuecomment-3805550565
I can't reproduce as well but I think that might be some kind of race
condition between the initiation of `chartArea` and the `resize` based on the
screenshot.
Could you help try set `clip: false` and test? Since when `resizeDelay` is
set, the annotation plugin can attempt to render during a resize event before
the chartArea is fully initialized. I think by setting `clip: false` could tell
the plugin to skip clipping calculations that depend on chartArea boundaries,
which maybe can prevent the crash during resize operations when chartArea might
not be ready yet.
it might be like this
```
plugins: {
annotation: {
clip: false,
```
reference
-
https://www.chartjs.org/chartjs-plugin-annotation/latest/guide/configuration.html#top-level-options
-
https://github.com/chartjs/chartjs-plugin-annotation/blob/master/docs/guide/configuration.md
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]