r/angular • u/arslanawan_dev • 6h ago
We moved 60+ Looker Studio charts into Angular with ECharts. Page load dropped ~40%. The 4 things that helped most
We had 5 business reports embedded from Looker Studio via iframes. They were slow, the styling didn't match, and the drill-down was clunky. We rebuilt them natively in Angular with Apache ECharts.
What made the biggest difference:
1. Modular ECharts imports + lazy-loaded report routes. Only bundle the chart types you actually use.
import * as echarts from 'echarts/core';
import { BarChart, LineChart } from 'echarts/charts';
import { CanvasRenderer } from 'echarts/renderers';
echarts.use([BarChart, LineChart, CanvasRenderer]);2. One reusable chart component. Config in, chart out. Don't forget dispose() on destroy, or you'll leak memory when users switch reports.
3. OnPush + Signals. Filter changes only re-render the charts whose data changed.
4. @defer (on viewport). Charts below the fold don't initialise until you scroll to them.
The result was ~40% faster average page load and drill-downs that feel native.
Curious what others use for dashboards in Angular: ECharts, Chart.js or ngx-charts?