Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-grid-heatmapjs
Advanced tools
React for the user interface, Tailwind CSS for styling, and CSS Grid for layout. A heatmap is a data visualization technique that uses color to represent the magnitude of values within a two-dimensional grid or matrix.
Readme
React for the user interface, Tailwind CSS for styling, and CSS Grid for layout. A heatmap is a data visualization technique that uses color to represent the magnitude of values within a two-dimensional grid or matrix.
Name | Type | Description |
---|---|---|
title (optional) | string | Title for Heatmap Heading |
colorRange | { from: number ,to: number ,color: string ,name: string }[] | from: The lowest value in the range., to: The highest value in the range., color: The color of cells that fall within the range, specified in hexadecimal format., name: The name of the range, which will appear in the legend. |
series | { name: string ,data: number[] ,total?: number[] }[] | name: becomes the y-axis label data: values total: To display the total of row data on the right side of the heatmap along the Y-axis.. |
xaxis | { labels: string[] ,totals?: number[] } | labels: label property becomes the label for the x-axis totals: To display the total of column data beneath the label. |
import { HeatMap } from "react-grid-heatmapjs";
import "react-grid-heatmapjs/dist/style.css";
const data = {
title: "Dummy Heat Map",
colorRange: [
{
from: 0,
to: 30,
color: "#4074b3",
name: "Cold",
},
{
from: 30,
to: 60,
color: "#ffc039",
name: "Hot",
},
],
series: [
{
name: "Series 1",
data: [10, 5, 50, 2, 25],
total: 150,
},
{
name: "Series 2",
data: [1, 12, 50, 11, 18],
total: 125,
},
{
name: "Series 3",
data: [3, 7, 17, 50, 14],
total: 175,
},
],
xaxis: {
labels: ["Label 1", "Label 2", "Label 3", "Label 4", "Label 5"],
totals: [30, 60, 90, 120, 150],
},
};
<HeatMap
title={data.title}
colorRange={data.colorRange}
series={data.series}
xaxis={data.xaxis}
/>
The data above will produce this heatmap.
Clone this package:
git clone https://github.com/hex909/react-heatmapjs.git
Navigate to the package's root directory and install the required dependencies:
cd react-heatmapjs
npm install
To test this Package locally, you can use npm link to create a symbolic link between your local development directory and your application. Follow these steps:
npm run build
npm link
npm link react-heatmapjs
FAQs
React for the user interface, Tailwind CSS for styling, and CSS Grid for layout. A heatmap is a data visualization technique that uses color to represent the magnitude of values within a two-dimensional grid or matrix.
The npm package react-grid-heatmapjs receives a total of 0 weekly downloads. As such, react-grid-heatmapjs popularity was classified as not popular.
We found that react-grid-heatmapjs demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.