chromabar
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

chromabar

Build Status codecov

A JavaScript library for rendering color bars. Based on d3-scales and SVG. Also includes components for a color map editor.

Installation

To use the package as a library, install it with:

npm install --save chromabar

For development, clone the repository and run:

npm install     # To install dependencies
npm run build   # To compile the typescript sources
npm test        # To run tests

Screenshots

Here are some examples of use, as output by the demo:

Linear red-blue

Linear, diverging orange-white-green

Sequential Viridis

Logarithmic red-blue

Power red-white-blue

Ordinal Category10

Transparent red-white-blue

Transparent ordinal triplet

API

TODO

Readme

Keywords

none

Package Sidebar

Install

npm i chromabar

Weekly Downloads

3

Version

0.7.0

License

BSD-3-Clause

Unpacked Size

129 kB

Total Files

36

Last publish

Collaborators

  • vidartf