G2 is a visualization grammar, a data-driven visual language with a high level of usability and scalability. It provides a set of grammars, takes users beyond a limited set of charts to an almost unlimited world of graphical forms. With G2, users can describe the visual appearance of a visualization just by one statement.
$ npm install @antv/g2
;const data =genre: 'Sports' sold: 275genre: 'Strategy' sold: 1150genre: 'Action' sold: 120genre: 'Shooter' sold: 350genre: 'Other' sold: 150;const chart =container: 'c1'width: 500height: 500;chartsourcedata;chartcolor'genre';chart;
$ npm install# run test case$ npm run test-live# build watching file changes and run demos$ npm run dev# run demos$ npm run demos
Please let us know how can we help. Do check out issues for bug reports or suggestions first.
To become a contributor, please follow our contributing guide.