flutter_echarts
2.5.0, released 3 years ago by an unverified publisher
Flutter widget to render Apache ECharts data visualization libraries via WebView.
What it does
A Flutter widget that embeds Apache ECharts to display advanced charts such as WebGL 3D, GIS maps, lines, bars, and pies in a reactive manner. It supports two-way communication between Flutter and JavaScript, and configurable extensions.
AI-written summary of version 2.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need complex data visualization charts powered by Apache ECharts.
- You require advanced chart types like 3D charts, heatmaps, or GIS maps.
Skip it when
- You want a purely native rendering chart library to avoid webview instability or performance issues.
- You are building performance-critical charts inside scrolling lists where webview overhead causes lag.
Strengths
- Access to the rich feature set and diverse chart types of Apache ECharts.
- Supports reactive updating of charts when the option property changes.
- Two-way communication between Flutter and JavaScript via custom scripts and message handlers.
Weaknesses
- Relies on a WebView underneath, which can introduce performance and stability issues.
- Requires passing configurations as raw JavaScript/JSON strings.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Not documented
Container(
child: Echarts(
option: '''
{
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line'
}]
}
''',
),
width: 300,
height: 250,
)Alternatives
Packages that do the same job and could replace flutter_echarts.
- fl_chart
Pick it for a purely native Flutter charting library without webview overhead.
94Compare - syncfusion_flutter_charts
Pick it for a robust, feature-rich, and native set of business charts.
91Compare - graphic
Pick it as a grammar-of-graphics charting library recommended by the authors as an alternative.
66Compare
Works with
Packages commonly used together with flutter_echarts: ones it builds on, ones built on it, and its own family.