Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/antvis/attr

Attribute mapping module for @antvis.
https://github.com/antvis/attr

attribute mapping

Last synced: about 2 months ago
JSON representation

Attribute mapping module for @antvis.

Awesome Lists containing this project

README

        

# @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