
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
@sarpere/heatmapjs-react
Advanced tools
A very simple port of heatmap.js
for React
. The idea behind this component is to be able to display a heatmap over any type of content (image, div, components ...).
Inspired by react-heatmap.
Live Demo: @sarpere/heatmapjs-react
yarn
yarn dev
Then open localhost:8000
in a browser.
yarn storybook
Then open localhost:6006
in a browser.
npm i @sarpere/heatmapjs-react
yarn add @sarpere/heatmapjs-react
import { Heatmap } from "@sarpere/heatmapjs-react";
const App = () => {
const data = [{ x: 10, y: 15, value: 5}, { x: 50, y: 50, value: 2}, ...];
return (
<Heatmap max={5} data={data} />
)
}
Prop | Type | Default | Required | Description |
---|---|---|---|---|
max | int | 5 | Yes | Maximum value for intensity |
data | array | [] | Yes | Heatmap array of dots |
unit | string | decimal | No | Can be either percent or decimal . If percent, a x value like 26 is considered 26% of the container from the top left |
config | HeatmapConfig | { | No | A Heatmap can be customized with the HeatmapConfig. More info on Heatmap.js configObject |
FAQs
Heatmapjs React bindings
The npm package @sarpere/heatmapjs-react receives a total of 46 weekly downloads. As such, @sarpere/heatmapjs-react popularity was classified as not popular.
We found that @sarpere/heatmapjs-react 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.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.