Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ember-cli-d3-shape
Advanced tools
ember-cli-d3-shape
is a shim for D3 4.x
, loaded from NPM as ES6 modules. It includes d3-shape
and all version 4 modules in D3 4.x
.
D3 Shape is a set of primitives for building complex data visualisations. Because
it depends on all the other components of D3, this package also provides all other
D3 v4.0
packages (see below for a list).
This addon is just a shim, if you're looking for a more high level visualisation addon, check out maximum-plaid.
Each package is importable as per the D3 documentation for each package.
This also means that you don't need to import the entire d3.js
build into your App if you
only need a function or two. For example, check out d3-array for
an extensive library of useful Array functions not natively found in Javascript.
Example usage:
import { line } from 'd3-shape';
import { scaleOrdinal } from 'd3-scale';
import { extent } from 'd3-array';
This addon will be updated when new releases are cut of these packages. Currently none of these are 1.0 stable, so some of your code might break by upgrading. It is recommended that you have solid tests in place.
Install this like any other Ember Addon:
ember install ember-cli-d3-shape
Then import what you need from each module:
import { curveCardinalOpen } from 'd3-shape';
import { select } from 'd3-selection';
export default Ember.Component.extend({
didInsertElement() {
this.plot = select(this.element.querySelector('svg'));
},
didRender() {
// NOTE: Do things with the DOM after it has rendered.
this.plot.append('rect').attr('fill', '#15CD72');
}
});
ember server
npm test
(Runs ember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
FAQs
Data-Driven Documents for Ember
The npm package ember-cli-d3-shape receives a total of 0 weekly downloads. As such, ember-cli-d3-shape popularity was classified as not popular.
We found that ember-cli-d3-shape 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.