The Working Approach
AntV G2 Chart focuses on chart implementation with @antv/g2 v5. It starts generated examples from a complete declarative specification and covers common failure points such as missing containers, incorrect mark names, singular label properties, and misplaced transforms. It also provides a documentation-retrieval endpoint for targeted G2 concepts and examples.
The source is especially clear about multi-mark composition: a line and points belong inside a view's children rather than repeated root-type changes. Its visual guidance separates the engine's defaults from the Skill's chosen overrides, and asks that units, source labels, and titles only be added when their meaning is known. It is not a general AntV tool for graphs, diagram editors, or pivot tables.
Expected Deliverables
- A complete G2 v5 chart specification with container and render setup.
- Corrected mark, encoding, transform, and composition choices.
- A chart-specific review of labels, color semantics, tooltips, and data meaning.
From Brief to Review
- 01Read the Data and Intent
Identify fields, units, comparison needs, and the chart question without inventing missing semantics.
- 02Retrieve the Relevant Reference
Use the documented G2 retrieval service when API or chart-type details need confirmation.
- 03Build a Complete Spec
Choose valid marks and channels, use transform arrays, and compose overlays within a view.
- 04Render and Review
Check actual marks, labels, legends, themes, and dense-data behavior in the target container.