graphic
2.7.0, released 9 months ago by an unverified publisher
A grammar of data visualization and Flutter charting library.
What it does
Graphic is a Flutter charting library based on the grammar of graphics. It allows you to compose data processing steps and mark shapes freely in a declarative specification rather than being limited to preset chart types, supporting interactions and transition animations.
AI-written summary of version 2.7.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need highly customizable and non-standard charts built on a grammar of graphics.
- You require interactive charts with selections, tooltips, and scale transformations.
- You want declarative chart definitions with entrance and transition animations.
Skip it when
- You need a simple plug-and-play chart without understanding a visualization grammar.
- You are looking for specific non-chart data visualization components not covered by basic marks.
Strengths
- Flexible declarative grammar derived from The Grammar of Graphics.
- Highly interactive with event and selection definitions.
- Customizable shape draw methods and mark transition animations.
Weaknesses
- Requires learning a specific grammar paradigm rather than traditional chart configuration widgets.
- Documentation points largely to an external skill or example repository for deep usage.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Chart(
data: [
{'genre': 'Sports', 'sold': 275},
{'genre': 'Strategy', 'sold': 115},
],
variables: {
'genre': Variable(
accessor: (Map map) => map['genre'] as String,
),
'sold': Variable(
accessor: (Map map) => map['sold'] as num,
),
},
marks: [IntervalMark()],
axes: [
Defaults.horizontalAxis,
Defaults.verticalAxis,
],
)Alternatives
Packages that do the same job and could replace graphic.
- fl_chart
If you prefer traditional, highly readable widget-based chart configurations instead of a grammar of graphics.
94Compare - syncfusion_flutter_charts
If you need a comprehensive, feature-rich suite of enterprise-grade chart types out of the box.
91Compare - community_charts_flutter
If you want another declarative charting option previously backed by Google.
50Compare
Works with
Packages commonly used together with graphic: ones it builds on, ones built on it, and its own family.