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-typescript-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: {
|
22 | // initialize state
|
23 | foo: 'bar',
|
24 | },
|
25 | });
|
26 | ```
|
27 |
|
28 | ## API
|
29 |
|
30 | See details at [DataSet API](https://g2.antv.vision/zh/docs/api/data-set).
|