Skip to content

Conversation

@yuseok89
Copy link
Contributor

When clicking the DAG task icon to open the task view, I intermittently hit a Chart.js error:
image
The stack trace points into chartjs-plugin-annotation’s beforeDraw hook while rendering the Gantt chart

According to Chart.js / annotation plugin issue reports, this error commonly occurs when resizeDelay is set, because the annotation plugin can run during a resize before chartArea is fully initialized, making chartArea.left undefined. Our Gantt chart options were using resizeDelay: 100 together with the annotation plugin, which matches this pattern. To avoid this resize race while preserving the existing annotation/highlight behavior, I removed the resizeDelay setting so the chart resizes immediately without triggering that crash.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Jan 21, 2026
@bbovenzi bbovenzi added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Jan 21, 2026
@bbovenzi
Copy link
Contributor

Can you walk me through how exactly you got this error? I would like to replicate first.

@yuseok89
Copy link
Contributor Author

yuseok89 commented Jan 22, 2026

Screen.Recording.2026-01-22.at.9.27.19.PM.mov

Sorry for the brief description earlier.
The video demonstrates the exact steps. I encountered this error when running from the main branch with Breeze, which led to this PR. If reproduction is difficult on your end, I can do more testing to pinpoint the exact conditions that trigger it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants