Skip to content

A JavaScript library for rendering and editing color bars. Based on d3-scales and SVG.

License

Notifications You must be signed in to change notification settings

vidartf/chromabar

Repository files navigation

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

About

A JavaScript library for rendering and editing color bars. Based on d3-scales and SVG.

Topics

Resources

License

Stars

Watchers

Forks

Packages