Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
Download the latest versions of D3plus (directory includes all dependencies):
Note that because we will be running these files locally, our browser will raise errors when trying to do AJAX requests. The best way around this is to run a local server, if you have python installed this can be accomplished on the command line via:
python -m SimpleHTTPServer 8888 &
or for Python 3+
python -m http.server 8888 &
Once this is running, go to http://localhost:8888/.
Another alternative is using MAMP (on OSX) or WampServer (on Windows), which will install a local version of the Apache web server.
To initialize a D3plus visualization, you must first create a container element in the page body:
<div id="viz"></div>
Then, you must initialize the visualization:
var visualization = d3plus.viz()
Finally, given we have a "data" variable as an array of objects, we pass both that "data" and our container element (using standard D3 Selection Methods) to the visualization:
visualization
.data(data)
.container("#viz")
And that's it! All you have to do now is invoke the Draw method to draw the visualization on the page.
visualization.draw()
Given you followed the tutorial above to create a D3plus visualization, your page should look, well, fairly empty and broken.
That is because there are some specific methods you should invoke on your visualization that will tell it a little more about your data and what you would like to display. For example, if you want to display a Tree Map and your data is keyed with an id of "person", you would call the following methods:
visualization
.type("tree_map")
.id("person")
Once you set the Methods you need, you will just need to invoke the Draw method to display your changes.
FAQs
Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
The npm package d3plus receives a total of 179 weekly downloads. As such, d3plus popularity was classified as not popular.
We found that d3plus 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.