# perf: optimize dashboard chart rendering \(\#65\) · flambo/atlantis

[View on GitCafe](https://git.cafe/flambo/atlantis/commit/484c098617a87efaa2209c50eccc7622eec06fb6)

Repository: [flambo/atlantis](https://git.cafe/flambo/atlantis)

Visibility: public

Requested revision: 484c098617a87efaa2209c50eccc7622eec06fb6

Requested commit: 484c098617a87efaa2209c50eccc7622eec06fb6

Commit: 484c098617a87efaa2209c50eccc7622eec06fb6

Tree: 93d201ba1efb7c0abcbfb492c088cdd6ef378610

Author: oliver

Committer: GitHub

## Message

```
perf: optimize dashboard chart rendering (#65)

## Summary
- replace chart.js/auto imports with explicit chart registries
- split annotation plugin registration to file-detail charts only
- batch crosshair redraws with requestAnimationFrame and disable chart update animations
- reduce dense-axis tick measurement work on dashboard charts

## Verification
- bun format
- bun lint
- bun typecheck
- bun run --cwd apps/web test tests/lib/chart-utils.test.ts
- bun run build:web

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

## Release Notes

* **New Features**
  * Added timezone-aware date window extraction for data processing pipelines.
  * Extended chart configuration to support animation control options.

* **Bug Fixes**
  * Improved validation of NetFlow data files to reject malformed filenames.

* **Performance**
  * Optimized chart rendering with coalesced crosshair redraws using animation frames.
  * Centralized Chart.js plugin registration to eliminate duplicate initialization.

* **Tests**
  * Enhanced test coverage for exclusive date boundary handling and multi-source data filtering.

<!-- review_stack_entry_start -->

[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/flamboh/atlantis/pull/65?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
```

## Parents

- [1bfc7a429b142fa0c8263b7b8bf4e3bb15566150](https://git.cafe/flambo/atlantis/commit/1bfc7a429b142fa0c8263b7b8bf4e3bb15566150?format=markdown)

- [a76f9bf5618f4631ce36a0fbd35ec19d5172a0a4](https://git.cafe/flambo/atlantis/commit/a76f9bf5618f4631ce36a0fbd35ec19d5172a0a4?format=markdown)

[Source at this commit](https://git.cafe/flambo/atlantis/tree/484c098617a87efaa2209c50eccc7622eec06fb6?format=markdown)
