
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
WebGL2 powered fast heatmaps for spectrograms, analytics, scientific computing and more
Just fetch this from npm via command line
npm install heatmap-gl
import { HeatmapGL } from "heatmap-gl";
var heatmapGL = new HeatmapGL(someDomElement)
// specify gradient
heatmapGL.gradient = [
{
color: [84, 33, 119, 1],
offset: 0
}, {
color: [253, 29, 29, 1],
offset: 100
}, {
color: [255, 166, 0, 1],
offset: 200
}, {
color: [224, 249, 18, 1],
offset: 300
}
];
// make random data
var width = 512;
var height = 512;
var data = Array(width * height);
var i = 0;
for (var y = 0; y < height; y++) {
for (var x = 0; x < width; x++) {
data[i++] = Math.random() * 300; // set your values here
}
}
// set data and render
heatmapGL.width = width;
heatmapGL.height = height;
heatmapGL.data = data;
heatmapGL.render();
Explore the examples directory for demos that you can run on your browser.
There are lots of heatmaps for javascript. Almost all of them are just for user tracking (they only support drawing circles). I created a general purpose heatmap library that can accept raw data and be used for all sort of scientific and medical applications.
For latest releases and announcements, check out my site: aliashraf.net
This software is released under the MIT License. Please read LICENSE for information on the software availability and distribution.
Copyright (c) 2022 Ali Ashraf
FAQs
WebGL2 powered fast heatmaps for spectrograms and more
The npm package heatmap-gl receives a total of 0 weekly downloads. As such, heatmap-gl popularity was classified as not popular.
We found that heatmap-gl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.