Open zzusunjs opened 4 years ago
I was facing the same issue and found there was a bug in the source code of the library (the one downloaded with npm install d3-lasso
). It was making references to a global d3
without previously importing it.
This was fixed in this repository 8 months ago with this commit 35bb9054bce0ec86021f39e5dea0aaad6fe73aca. But it seems that the npm official package has not been updated. By now, if you install it from this GitHub repo with npm install skokenes/d3-lasso
it should work fine (it does for me at least).
An update of the npm repo would definetely close this issue, and other related like #5
Sorry about that, I will take a look into it. I am having trouble getting the project to build with rollup now, so I need some time to investigate that. Otherwise it would be an easy step to publish
Great work for skokenes. I am trying to use
d3-lasso
withVue.js
andd3.js
and I got some problems here. The import part isimport * as d3 from 'd3'; import * as d3Lasso from "d3-lasso";
and the lasso part isThe error occurs at
this.svg.call(this.lasso);
which isSo, what is going on and what should I do to fix this problem ?