/textheat

text with heatmap for React

Primary LanguageJavaScriptMIT LicenseMIT

textheat

Textbox and heatmap in one React component.

Check out the demo here.

Description

TextHeat is a component for React that displays text, color-coded using numeric weights.

The default styling uses a color scale with shades of red, e.g.

Basic textheat example

The scheme can be changed to other colors, e.g.

Basic textheat example

The weights (colors) can be adjusted using an API. The box can also be editable. These features are demonstrated in the 'examples' app here.

Setup

To get started, install dependencies and build the component.

npm install
npm run build

Run the examples app.

npm run examples_start

This command should launch a browser with a local copy of the examples app.

Comments, questions, issues

Feedback is very welcome. Please raise an issue in the github repo.