Détail du package

@antv/attr

antvis421.8kMIT0.3.5

The Attribute module for G2, F2.

antv, attr, g2, f2

readme

@antv/attr

Mapping data to visual AES.

npm package NPM downloads Percentage of issues still open

Installing

npm install @antv/attr

Usage

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

changelog

0.3.1 (2020-01-10)

  • 使用 @antv/color-util
  • 测试框架迁移至 jest-electron