Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-d3

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-d3

Ember CLI addon to include D3 as an ES2015 module in your app.

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.9K
decreased by-41.24%
Maintainers
3
Weekly downloads
 
Created
Source

ember-d3 Build Status Ember Observer Score npm version Dependency Status devDependency Status

Ember shim for loading d3@4.x.x. To install:

ember install ember-d3

D3 modules are loaded from NPM as ES2015 modules. It includes d3-shape and all version 4 modules in D3 4.x.

If you're looking for the ember-d3 for d3@3.x, see the v3 branch.

Advanced Installation

If you need a specified d3 version, add this to your project:

npm install --save-dev d3@4.1.1

Example usage:

import { line } from 'd3-shape';
import { scaleOrdinal } from 'd3-scale';
import { extent } from 'd3-array';

Specifying the d3 version

This addon is simply a loader for the d3 NPM package. If you would like to specify a specific version on the d3 v4.x track, you can do so by installing that version directly in your project, and this addon will load that version.

Svelte Builds

In case you do not want to include all of d3's dependencies, you may whitelist the packages that you want to include in your project's config/environment.js file.

For example, if you only wanted to use d3-scale, you would do:

// config/environment.js
module.exports = function() {
  return {
    'ember-d3': {
      only: ['d3-scale']
    }
  };
};

Or if you want to exclude a package:

// config/environment.js
module.exports = function() {
  return {
    'ember-d3': {
      except: ['d3-scale']
    }
  };
};

Note: Even though you only add d3-scale, it has a few transitive d3 dependencies. These are added to your project automatically.

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Keywords

FAQs

Package last updated on 16 Oct 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc