Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antv/g2

Package Overview
Dependencies
Maintainers
4
Versions
375
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g2 - npm Package Compare versions

Comparing version 3.0.0-rc5.14 to 3.0.0

LICENSE

12

package.json
{
"name": "@antv/g2",
"version": "3.0.0-rc5.14",
"version": "3.0.0",
"description": "the Grammar of Graphics in Javascript",

@@ -8,6 +8,10 @@ "main": "build/g2.js",

"module": "index.js",
"homepage": "https://github.com/antvis/g2",
"repository": {
"type": "git",
"url": "git@gitlab.alibaba-inc.com:datavis/g2.git"
"url": "git@github.com:antvis/g2.git"
},
"bugs": {
"url": "https://github.com/antvis/g2/issues"
},
"keywords": [

@@ -51,3 +55,3 @@ "g2",

"build": "webpack",
"ci": "tnpm run lint && tnpm run test",
"ci": "npm run lint && npm run test",
"compress": "uglifyjs -c -m -o dist/g2.min.js -- build/g2.js",

@@ -76,3 +80,3 @@ "coverage": "npm run coverage-generator && npm run coverage-viewer",

"dependencies": {
"@antv/g": "^2.0.0-beta.27",
"@antv/g": "^2.0.0",
"fecha": "^2.3.1",

@@ -79,0 +83,0 @@ "gl-matrix": "^2.4.0",

# G2: the Grammar of Graphics in Javascript
[![npm package](https://img.shields.io/npm/v/@antv/g2.svg?style=flat-square)](https://www.npmjs.com/package/@antv/g2)
[![NPM downloads](http://img.shields.io/npm/dm/@antv/g2.svg?style=flat-square)](https://npmjs.org/package/@antv/g2)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/g2.svg)](http://isitmaintained.com/project/antvis/g2 "Percentage of issues still open")
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.
[More details about G2](https://antv.alipay.com/zh-cn/g2/3.x/index.html).
## Installing
## Contributing
```js
npm install @antv/g2
```
- project structure
- core style guide
- work flow
### Example
```html
<div id="c1"></div>
```
```js
import G2 from '@antv/g2';
const data = [
{ genre: 'Sports', sold: 275 },
{ genre: 'Strategy', sold: 1150 },
{ genre: 'Action', sold: 120 },
{ genre: 'Shooter', sold: 350 },
{ genre: 'Other', sold: 150 },
];
const chart = new G2.Chart({
container: 'c1',
width: 500,
height: 500
});
chart.source(data);
chart.interval().position('genre*sold').color('genre');
chart.render();
```
[More examples](https://antv.alipay.com/zh-cn/g2/3.x/demo/index.html)

@@ -10,3 +10,3 @@ /**

const Default = {
version: '3.0.0-rc5.14',
version: '3.0.0',
trackable: true,

@@ -13,0 +13,0 @@ animate: true,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc