Skip to content

slofurno/heatmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • performant canvas heatmap
  • rank-based color saturation
  • supports both historical and streaming data

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"],
  ])

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published