Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
d3plus-react
Advanced tools
React components for d3plus visualizations.
Use npm install d3plus-react -S
to install the package as a dependency. And then use the components in your React project like this:
import {Treemap} from "d3plus-react";
const methods = {
groupBy: "id",
data: [
{id: "alpha", value: 29},
{id: "beta", value: 10}
],
size: d => d.value
};
<Treemap config={methods} />
Additionally, a file named .d3plus.js
needs to exist in the root path of your project. This file should contain all global styles to be applied to the visualizations (passed to the .config( ) method). Here is an example that makes all of your visualizations use the best font ever created:
export default {
shapeConfig: {
fontFamily: "Comic Sans MS"
}
};
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of Viz
.
This is a global class, and extends all of the methods and functionality of React.Component
.
React.Component
# new Viz()
Creates SVG paths and coordinate points based on an array of data. See this example for help getting started using the geomap generator.
This is a static property of Viz
.
Param | Type | Default | Description |
---|---|---|---|
[config] | Object | {} | An object containing method/value pairs to be passed to the visualization's .config( ) method. |
[dataFormat] | function | d3plus.dataFold | A custom formatting function to be used when formatting data from an AJAX request. The function will be passed the raw data returned from the request, and is expected to return an array of values used for the data method. |
FAQs
React components for d3plus visualizations.
The npm package d3plus-react receives a total of 331 weekly downloads. As such, d3plus-react popularity was classified as not popular.
We found that d3plus-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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.