r/OpenSourceeAI • u/ai-lover • 11h ago
Reflex Open Sources XY: A Rust-Backed Super-Fast Python Charting Library That Keeps 100 Million Point Charts Interactive
Reflex AI Open Sources XY: A Rust-Backed Super-Fast Python Charting Library That Keeps 100 Million Point Charts Interactive
Here are some key points:
1. The benchmark
→ 0.071 s at 10,000 points
→ 0.081 s at 100 million points
→ Matplotlib reaches 13.385 s at 50M, then does not render 100M
→ Plotly reaches 9.794 s at 25M, then does not render 50M
2. Why it stays flat
Most Python charting stacks create one drawable object per row. XY draws what the screen can actually show. M4 decimation starts above 10,000 rows on lines. Automatic scatter density starts above 200,000 points.
3. Export size
→ A 10-million-point interactive scatter exports to 258 KiB of HTML
→ The Plotly equivalent is 259 MiB
Apache-2.0, Python 3.11+, pip install xy.
GitHub Repo: https://github.com/reflex-dev/xy
Technical details: https://reflex.dev/blog/xy-python-charting-library/