Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@antv/adjust

antvis420.8kMIT0.2.5TypeScript support: included

The adjust module for G2, F2.

antv, adjust, g2, f2

readme

@antv/adjust

Data adjust for @antv/G2.

npm package NPM downloads Percentage of issues still open

Installing

npm install @antv/adjust

Usage

import { getAdjust } from '@antv/adjust';

// contains Dodge, Jitter, Stack, Symmetric
const Dodge = getAdjust('dodge');

const d = new Dodge();

// adjust the data
const r = d.process();

License

MIT

changelog

0.2.5 (2022-01-23)

New Features
  • fix(g2-issue-3737): 允许外部传入 dimValuesMap,替代从数据中获取(9f1b441)

0.1.1 (2019-02-11)

Bug Fixes
  • 修复只有一组数据时基础 dodge 算法偏差问题 (9464cd75)

0.0.1 (2018-06-25)

init.