
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-tooltip-bubble-chart
Advanced tools
This is a bubble chart component that includes a tooltip using d3
. I created a component based on React
and Typescript
by referring to the open source Draw a bubble chart. When the mouse hovers
over the bubble chart object, the contents inside the bubble chart are displayed as a tooltip
. You can also customize the movement of the bubble chart through the move
setting. This library can be an excellent choice for data visualization. I hope this is what you were looking for.
npm install react-tooltip-bubble-chart #npm
import "./App.css";
import BubbleChart from "react-tooltip-bubble-chart";
function Example() {
const bubbleData = [
{
fillColor: "rgb(52, 202, 173, 0.3)",
id: 0,
name: "Getting\nStart",
size: 120,
dYdX1: { dy: -2, dx: -4 },
},
{
fillColor: "rgb(52, 202, 173, 0.3)",
id: 1,
name: "Setting\nme",
size: 50,
dYdX1: { dy: -2, dx: -3 },
dYdX2: { dy: 8, dx: -20 },
},
{
fillColor: "rgb(52, 202, 173, 0.3)",
id: 4,
name: "Getting\nStart",
size: 120,
dYdX1: { dy: -2, dx: -4 },
},
{
fillColor: "rgb(52, 202, 173, 0.3)",
id: 5,
name: "Setting\nme",
size: 50,
dYdX1: { dy: -2, dx: -3 },
dYdX2: { dy: 8, dx: -20 },
},
{
fillColor: "rgb(52, 202, 173, 0.3)",
id: 6,
name: "Getting\nStart",
size: 120,
dYdX1: { dy: -2, dx: -4 },
},
{
fillColor: "rgb(52, 202, 173, 0.3)",
id: 7,
name: "Setting\nme",
size: 50,
dYdX1: { dy: -2, dx: -3 },
dYdX2: { dy: 8, dx: -20 },
},
];
return (
<div>
<BubbleChart
bubblesData={bubbleData}
width={700}
height={470}
textFillColor="#717C84"
backgroundColor="white"
minValue={1}
maxValue={150}
move={true}
/>
</div>
);
}
export default Example;
export namespace BubbleChartTypes {
export type Data = {
fillColor: string;
id: number;
name: string;
size: number;
dYdX1: { dy: number; dx: number };
dYdX2: { dy: number; dx: number };
dYdX3: { dy: number; dx: number };
};
}
Prop | Description | Type | Test |
---|---|---|---|
bubblesData | An array of text and setting values for the bubble chart | array | bubblesData[] |
move | Bubble chart animation settings dropdown | boolean | true |
width | Width of the entire area of the bubble chart | number | 700 |
height | Height of the entire area of the bubble chart | number | 470 |
backgroundColor | Set background color behind bubble chart | string | white |
textFillColor | Change the color of the text inside the bubble chart | string | #717C84 |
minValue | Bubble chart minimum weight value | number | 1 |
maxValue | Bubble chart maximum weight value callback | number | 150 |
If you need intuitive usage, you can try this library right away through Storybook. You can check the operation more intuitively. Please refer to the information below.
MIT ©
FAQs
This is React bubble chart with tooltip to visualize data.
The npm package react-tooltip-bubble-chart receives a total of 11 weekly downloads. As such, react-tooltip-bubble-chart popularity was classified as not popular.
We found that react-tooltip-bubble-chart 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.
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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.