Growing Strong : Charting library G2Plot 1.0
Published: 2020-03-19 06:52:50


G2Plot is an interactive and responsive charting library. Based on the grammar of graphics, superior statistical charts can be made through a few lines of code.
G2Plot was born to empower BI systems and front-end developers of Alibaba Group to create high-quality statistic charts fast and easily, and to guarantee the readability of charts in tiny display area and complicate data situation.

Through about half year's development, the types of charts have grown from 7 in 0.x version to 40. Verified in the core BI product of Ant Financial, G2Plot 1.0 was finally released. We hope that our development and design experience in data visualization, especially in BI products, could help more users to make elegant statistical charts easily.

# Preview

## Easy to use

To most of developers and designers, learning professional data visualization knowledge, such as coordinate transforming, data mapping and graphic attributes, is time consuming and difficult. G2Plot encapsulates complicated data visualization concepts and techniques into configurative and descriptive APIs which are familiar to front-end developers. To generate a chart, all you need is to declare a chart type and to specify data and configurations.

![image](https://intranetproxy.alipay.com/skylark/lark/0/2020/png/101986/1584437029580-ebbd8a04-4329-4d23-8d6c-59077420a0dd.png?x-oss-process=image/resize,w_1452)


## Professional in every tiny scope

G2Plot interprets every chart as a specified scene in data visualization scope. The visual and technical details were carefully polished according to its usage scenarios, display space and data features.

### Graphics
Based on the unlimited possibilities of the Grammar of Graphics, G2Plot provides varieties of graphic extension.

![image](https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*kTdkT4bSJpAAAAAAAAAAAABkARQnAQ)

G2Plot optimizes graphics for particular scenarios such as large data volumes and minimal display space through data pruning and points simplification algorithm.

![image](https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*l5YNRaWAhIAAAAAAAAAAAABkARQnAQ)

### Interaction
In G2Plot, the complex interactions commonly used in statistical analysis, such as drilling down, data filtering, state linking, can be used through an out-of-the-box way. At the same time, G2Plot also provides complete event mechanism, including the events of canvas, graphics, chart components, to meet the users' personalized customization needs.
![image](https://intranetproxy.alipay.com/skylark/lark/0/2020/gif/101986/1584085215564-a04c87f2-5f39-4710-81ea-2446e1649632.gif)
![image](https://intranetproxy.alipay.com/skylark/lark/0/2020/gif/101986/1584007749879-c74b5ce3-d2c4-44d5-a47e-88a5d19ff123.gif)
![image](https://intranetproxy.alipay.com/skylark/lark/0/2020/gif/101986/1584085593621-7912f5fb-1ca3-4066-abfd-b1be41fb1850.gif)

### animation
The animation effects of G2Plot are designed according to the characteristics and usage scenario of each chart to make the charts more charming and vivid. Users can freely control the entry, disappearance and update animation by specifying the animation type, duration and easing function.

![image](https://intranetproxy.alipay.com/skylark/lark/0/2020/gif/101986/1584085799424-bce9b996-5f23-4dbd-b0fd-547daa429524.gif)

![image](https://intranetproxy.alipay.com/skylark/lark/0/2020/gif/101986/1584086068722-d1db69da-703a-481c-b779-a3126366b118.gif)

### Components
Responsive Chart Components: Incorrect overlapping and clipping of chart's visual elements are common problems in practical applications of data visualization. Enlightened by Inclusive Design concept, the graphic and text elements can be rarefied, abbreviated and adjusted automatically when the information density is too high, thereby ensuring the main parts of chart to be displayed correctly and clearly.

![image](https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*atUIRb9v0DEAAAAAAAAAAABkARQnAQ)

Build-in advanced components: we have encapsulated the components frequently used in statistical analysis on the basis of the features of each chart and have built them into G2Plot.

![image](https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*SSlVQoCBhgMAAAAAAAAAAABkARQnAQ)


The comparison between G2Plot and several commonly used chart libraries is shown as follows:

![image](https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*6U97SZS4I08AAAAAAAAAAABkARQnAQ)
![image](https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*KuX6TJxRPqkAAAAAAAAAAABkARQnAQ)

## Good by default and flexible configurations
Powered by the AntV Design Principle, the build-in default options of G2Plot charts ensure that each chart is standard and elegantly presented. On the other hand, the details of charts, such as visual style, components and events, can be customized according to user's requirements.

![image](https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*Xhm3Rre7WSYAAAAAAAAAAABkARQnAQ)


# Last but not least
Thank you very much for reading this article patiently. If you are interested in G2Plot, please follow us through the following channels：
GitHub：https://github.com/antvis/G2Plot
website：https://g2plot.antv.vision/en