1.0.2 • Published 5 years ago

gnuplot-heatmap v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

gnuplot-heatmap

Generate year-long heatmaps using gnuplot

Installation

npm install gnuplot-heatmap

Examples

Using the (old) GitHub color palette:

import HeatMap, { GITHUB_PALETTE } from "gnuplot-heatmap";

const data = [... your data ...];

const gnuplotcode = HeatMap({
  // Required
  title: "Contributions",
  data,
  year: 2019,

  // Optional
  outFile: "heatmap",
  palette: GITHUB_PALETTE,
  colorbox: true,
  width: 1500,
});

The GitHub palette only has colors for 0, 5 so you will need to map your data to within that range for it to work properly.

npm.io

Using an automatic color palette from gnuplot:

import HeatMap, { GITHUB_PALETTE } from "gnuplot-heatmap";

const data = [... your data ...];

const gnuplotcode = HeatMap({
  // Required
  title: "Contributions",
  data,
  year: 2019,

  // Optional
  outFile: "heatmap",
  colorbox: true,
  width: 1500,
});

npm.io

1.0.2

5 years ago

1.0.1

5 years ago