Skip to content

Fork of chessboardjs with added heatmap functionality

License

Notifications You must be signed in to change notification settings

yschroe/heatboard.js

 
 

Repository files navigation

heatboard.js

heatboard.js is a fork of oakmacs chessboard.js with added heat map functionality. heatboard.js is a JavaScript chessboard component. It depends on jQuery.

Please see chessboardjs.com for basic usage.

New functions in heatboard.js

require('heatboard');
let map = []; // 8x8 array
let min = 2;
let max = 100;
let color = [255, 0, 0];
let unit = '%';

// for single data heatmap (only positive values)
chessboard.drawHeatmap(map, min, max, color, unit);

// for comparison heatmap (positive and negative values)
chessboard.drawComparisonHeatmap(map, min, max);

About

Fork of chessboardjs with added heatmap functionality

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.8%
  • PHP 7.1%
  • CSS 6.8%
  • HTML 4.7%
  • Hack 1.6%