Having some trouble importing and using a d3 module in my webpack project.
The function I need from the module is declared like so: https://github.com/d3/d3-plugins/blob/master/hive/hive.js
d3.hive.link = function() {
I attempted to follow this guide to troubleshoot: but can't seem to figure out the correct syntax for importing and calling the link function.
Here are some variations I've tried:
import {link as hiveLink} from 'd3-hive';
import {hive as hiveLink} from 'd3-hive';
import * as hiveLink from 'd3-hive';
If anyone could point me in the right direction with the correct import syntax, it would be greatly appreciated!