# @antv/attr

> Mapping data to visual AES.


![](https://img.shields.io/badge/language-javascript-red.svg)
![](https://img.shields.io/badge/license-MIT-000000.svg)
[![npm package](https://img.shields.io/npm/v/@antv/attr.svg)](https://www.npmjs.com/package/@antv/attr)
[![NPM downloads](http://img.shields.io/npm/dm/@antv/attr.svg)](https://npmjs.org/package/@antv/attr)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/attr.svg)](http://isitmaintained.com/project/antvis/attr "Percentage of issues still open")


## Installing

```bash
npm install @antv/attr
```


## Usage


```js
import { getAttribute } from '@antv/adjust';

// contains Color, Opacity, Position, Shape, Size
const Color = getAttribute('color');

const color = new Color({/* ... */});

// mapping data to color
const r = color.mapping('杭州');
```


## License

MIT
