jeudi 16 février 2017

How to import D3 for an Ember project?

I have tried ember-d3 which does not work for me. I also have tried install D3 using NPM and ember-broswerfiy.

import Ember from 'ember';
import * as d3 from 'npm:d3';

However, I get the following error,

Uncaught TypeError: _npmD3.select is not a function

Is there a way to import D3 using ES6 import instead of making it available globally?




Aucun commentaire:

Enregistrer un commentaire