Develop Interactive ECharts Graphs and Dashboards for Your Website
Graphs on your site lagging? DataZoom hangs the browser at 10,000 points? The weak spot of many libraries is performance with large data volumes. Apache ECharts solves this: lazy rendering, WebGL acceleration, smart scaling. We have built dozens of dashboards for fintech, analytics, and monitoring — and we share our experience. Our team has 5+ years in data visualization and has completed over 30 projects. Certified engineers guarantee performance even with millions of points. Optimizing visualization saves your budget by reducing server load and page load times.
Why Choose ECharts for Visualization?
Unlike D3.js, where each element is drawn manually, ECharts provides ready chart types and a powerful API for customization. Chart.js falls short in performance on large data. ECharts includes built-in optimization: lazy rendering, dataZoom, WebGL. This renders 100,000 points at 60 FPS. According to Apache ECharts documentation, lazy rendering delivers 60 FPS for 100,000 points. For extreme volumes, use server-side aggregation or the echarts-gl extension.
How ECharts Handles Millions of Points
The core mechanism is dataZoom with inside mode. It scales the viewport without redrawing all data. For extreme volumes, use server-side aggregation: pass only the visible range. ECharts supports WebGL via the echarts-gl extension, yielding 60 FPS on 100,000 points. Compare renderers:
| Parameter | Canvas | SVG |
|---|---|---|
| Speed at 10,000 points | 30 FPS | 15 FPS |
| Sharpness on retina | Blurry | Sharp |
| Animation support | Yes | Yes |
| Recommendation | >1000 points | <1000 points |
Canvas or SVG Rendering: What to Choose?
ECharts defaults to canvas, but you can switch to SVG via opts.renderer. Canvas is faster on large data but loses quality on Retina displays. SVG is ideal for charts with few elements and animation. In our projects, we often combine: canvas for graphs with DataZoom, SVG for static charts.
Typical Problems and Solutions with ECharts
| Problem | Solution |
|---|---|
| Chart lags at 50,000 points | Enable dataZoom with inside mode, switch to canvas |
| Blurry lines on Retina display | Use SVG renderer for static charts |
| Hydration error in React | Use echarts-for-react with notMerge key |
| Memory leak on page navigation | Call .dispose() on the instance when unmounting |
Basic Integration with React
import ReactECharts from 'echarts-for-react'; function RevenueChart({ data }) { const option = { tooltip: { trigger: 'axis', formatter: (params) => { const p = params[0]; return `${p.axisValue}<br/>${p.marker}Revenue: <b>${formatCurrency(p.value)}</b>`; } }, legend: { data: ['Revenue', 'Forecast'] }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, xAxis: { type: 'category', boundaryGap: false, data: data.map(d => d.date) }, yAxis: { type: 'value', axisLabel: { formatter: v => `${(v/1000).toFixed(0)}k` } }, series: [ { name: 'Revenue', type: 'line', smooth: true, areaStyle: { opacity: 0.2 }, data: data.map(d => d.revenue), lineStyle: { color: '#3b82f6' } }, { name: 'Forecast', type: 'line', smooth: true, lineStyle: { type: 'dashed', color: '#f59e0b' }, data: data.map(d => d.forecast) } ] }; return ( <ReactECharts option={option} style={{ height: 350 }} opts={{ renderer: 'svg' }} /> ); } Heatmap (Activity Heatmap)
function ActivityHeatmap({ data }) { const option = { tooltip: { position: 'top' }, grid: { height: '50%', top: '10%' }, xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], splitArea: { show: true } }, yAxis: { type: 'category', data: Array.from({ length: 24 }, (_, i) => `${i}:00`), splitArea: { show: true } }, visualMap: { min: 0, max: 100, calculable: true, orient: 'horizontal', left: 'center', bottom: '15%', inRange: { color: ['#f0f9ff', '#0369a1'] } }, series: [{ name: 'Activity', type: 'heatmap', data: data, label: { show: false }, emphasis: { itemStyle: { shadowBlur: 10 } } }] }; return <ReactECharts option={option} style={{ height: 400 }} />; } Candlestick (Trading Chart)
function CandlestickChart({ ohlcData }) { const option = { xAxis: { type: 'category', data: ohlcData.map(d => d.date) }, yAxis: { scale: true }, series: [{ type: 'candlestick', data: ohlcData.map(d => [d.open, d.close, d.low, d.high]), itemStyle: { color: '#22c55e', color0: '#ef4444', borderColor: '#22c55e', borderColor0: '#ef4444' } }] }; return <ReactECharts option={option} style={{ height: 400 }} />; } DataZoom and Dynamic Update
const chartRef = useRef(); const option = { dataZoom: [ { type: 'inside', start: 0, end: 100 }, { type: 'slider', start: 0, end: 100 } ], // ... rest of option }; function updateChart(newData) { const chart = chartRef.current?.getEchartsInstance(); if (!chart) return; chart.setOption({ series: [{ data: newData }] }, { notMerge: false }); } Dashboard Development Process
- Analytics — study data sources, determine chart types, agree on layout.
- Design — choose renderer, configure DataZoom, design custom visualizations.
- Implementation — write components in React/TypeScript, integrate with API, add responsiveness.
- Testing — verify performance on target devices, fix bugs.
- Deployment — deploy on server, set up caching, train the team.
How to Avoid Common Performance Mistakes
- Ignoring large datasets — do not use more than 10,000 points without aggregation. Apply
dataZoomand server-side sampling. - Wrong renderer — choose SVG for static charts, Canvas for dynamic ones.
- Lack of responsiveness — on mobile devices reduce point count and disable animation.
- Memory leaks — destroy ECharts instances when unmounting components.
Timeline and What's Included
Basic development of 5-7 chart types with DataZoom and tooltip takes 3-5 days. The work includes:
- Source code with comments and documentation
- Integration with your site's API
- Responsive design for mobile devices
- Team training on ECharts
- 30-day warranty for hidden bugs
For complex dashboards with custom visualizations (graphs, sunburst, treemap), timelines are tailored individually. Request a consultation — we'll assess your project within 24 hours and propose the optimal solution. Contact us to discuss details and get a commercial proposal.
Guarantees and Support
After delivering the dashboard, we provide support for 30 days: we fix rendering issues, assist with integrating new data sources, and optimize performance as data volumes change. All components come with JSDoc comments and ECharts configuration documentation. If needed, we train your developers to add new chart types and customize appearance independently. For projects with regular data updates, we offer extended technical support — discussed individually.







