0.4.6 • Published 6 years ago

@slofurno/heatmap v0.4.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago
  • performant canvas heatmap
  • rank-based color saturation
  • supports both historical and streaming data

npm.io

usage

  let hm = newHeatmap(document.getElementById("hm"), {
    width: 172,
    height: 40,
    scaleY: 1000,
    scaleX: 1000*60*60,
    onmousemove: xs => xs.forEach(([t,y,p]) => console.log(t,y,p)),
  })

  hm.push_back([
    [Date.now() - 3000, 1000, "point 1"],
    [Date.now() - 2000, 2000, "point 2"],
    [Date.now() - 1000, 3000, "point 3"],
  ])
0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago