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.
ember-nf-graph
Advanced tools
A Component-based DSL for creating graphs in your Ember app. The goal of the library is to create a set of components that allows application or component authors to build graphs in a compositional way. This includes components for templated axes, graph lines, areas, stacked areas, bar graphs, and much more. Check the documentation for more information.
A basic graph example is as follows:
export default Ember.Route.extend({
model() {
return {
myLineData: [
{ x: 0, y: 12 },
{ x: 1, y: 32 },
{ x: 2, y: 42 },
// ...
],
myAreaData: [
{ x: 0, y: 43 },
{ x: 1, y: 54 },
{ x: 2, y: 13 },
// ...
]
};
}
});
{{#nf-graph width=500 height=300}}
{{#nf-graph-content}}
<!-- add a line -->
{{nf-line data=model.myLineData}}
<!-- add an area -->
{{nf-area data=model.myAreaData}}
<!-- mix in any SVG element you want -->
<circle cx="40" cy="40" r="10"></circle>
{{/nf-graph-content}}
<!-- axis ticks are templateable as well -->
{{#nf-y-axis as |tick|}}
<text>{{tick.value}}</text>
{{/nf-y-axis}}
{{#nf-x-axis as |tick|}}
<text>{{tick.value}}</text>
{{/nf-x-axis}}
{{/nf-graph}}
This set of Ember components requires Ember-CLI 0.2.0 or higher and Ember 1.10.0 or higher.
To install, simply run ember install ember-nf-graph
, or npm install -D ember-nf-graph
node_modules/ember-nf-graph/docs/index.html
just open in any browser.git clone
this repositorynpm install
bower install
ember server
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
This project uses YUIDoc to generate documentation. Once YUIDoc is installed run:
yuidoc -c yuidoc.json
The documentation is located in docs/
.
FAQs
A graphing/charting DSL for Ember.js
The npm package ember-nf-graph receives a total of 6 weekly downloads. As such, ember-nf-graph popularity was classified as not popular.
We found that ember-nf-graph demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.