The Attribute module for G2, F2.
npm install @antv/attr> Mapping data to visual AES.





``bash`
npm install @antv/attr
`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('杭州');
``
MIT