1 | # data-set
|
2 |
|
3 | [![](https://img.shields.io/travis/antvis/data-set.svg)](https://travis-ci.org/antvis/data-set)
|
4 | ![](https://img.shields.io/badge/language-javascript-red.svg)
|
5 | ![](https://img.shields.io/badge/license-MIT-000000.svg)
|
6 |
|
7 | [![npm package](https://img.shields.io/npm/v/@antv/data-set.svg)](https://www.npmjs.com/package/@antv/data-set)
|
8 | [![NPM downloads](http://img.shields.io/npm/dm/@antv/data-set.svg)](https://npmjs.org/package/@antv/data-set)
|
9 | [![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/data-set.svg)](http://isitmaintained.com/project/antvis/data-set "Percentage of issues still open")
|
10 |
|
11 | Data set with state management.
|
12 |
|
13 | ## Installing
|
14 |
|
15 | `npm install @antv/data-set`
|
16 |
|
17 | ```js
|
18 | import DataSet from '@antv/data-set';
|
19 |
|
20 | const ds = new DataSet({
|
21 | state: { // initialize state
|
22 | foo: 'bar'
|
23 | }
|
24 | });
|
25 | ```
|
26 |
|
27 | ## API
|
28 |
|
29 | See details at [DataSet API](https://antv.alipay.com/zh-cn/g2/3.x/api/data-set.html).
|