Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
juijs-chart
Advanced tools
SVG-based JUI chart that can be used in the browser and Node.js. Support many types of charts. (Dashboard, Map, Topology, Full 3D)
npm install juijs-chart
<script src="../dist/vendors.js"></script>
<script src="../dist/jui-chart.js"></script>
The difference with the existing method is that you need to add the module directly using the 'use' function.
import graph from 'juijs-chart'
import BarBrush from 'juijs-chart/src/brush/bar.js'
import ColumnBrush from 'juijs-chart/src/brush/column.js'
import TitleWidget from 'juijs-chart/src/widget/title.js'
graph.use(BarBrush, ColumnBrush, TitleWidget);
<div id="chart"></div>
The UI component creation code is the same as the existing one.
graph.ready([ "chart.builder" ], function(builder) {
var obj = builder("#chart", {
width: 600,
height : 600,
theme : "classic",
axis : {
x : {
type : "block",
domain : "quarter",
line : true
},
y : {
type : "range",
domain : function(d) { return [d.sales, d.profit ]; },
step : 3,
line : true,
orient : "right"
},
data : [
{ quarter : "1Q", sales : 1, profit : 3 },
{ quarter : "2Q", sales : 3, profit : 2 },
{ quarter : "3Q", sales : 10, profit : 1 },
{ quarter : "4Q", sales : 0.49, profit : 4}
]
},
brush : [{
type : "column",
target : [ "sales", "profit" ]
}],
widget : [{
type: "title",
text: "hihi"
}]
});
});
FAQs
SVG-based JUI chart that can be used in the browser and Node.js. Support many types of charts. (Dashboard, Map, Topology, Full 3D)
We found that juijs-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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.