JSPM

  • Created
  • Published
  • Downloads 399257
  • Score
    100M100P100Q176884F
  • License MIT

Toolkit for mapping abstract data into visual representation.

Package Exports

  • @antv/scale
  • @antv/scale/lib

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@antv/scale) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

English | 简体中文

Scale

Toolkit for mapping abstract data into visual representation.

Build Status Coverage Status npm Version npm Download npm License

✨ Features

  • Powerful
  • High performance
  • Fully embrace TypeScript

📦 Installation

$ npm install @antv/scale

🔨 Getting Started

import { Linear } from '@antv/scale';

const x = new Linear({
  domain: [0, 10],
  range: [0, 100],
});

x.map(2); // 20
x.invert(20); // 2
x.getTicks(); // [0, 2.5, 5, 7.5, 10]

📜 API reference

⚖️ Scales

🧮 Tick Methods

📄 License

MIT@AntV.