d3-legend
d3-legend copied to clipboard
TypeError: cell.transition is not a function
Receiving the following error while using d3-svg-legend with d3 v4:
Work around that seems to work is to import d3-transition into my file.
import * as d3 from 'd3-transition'
met the same problem
This might be related to https://github.com/d3/d3-selection/issues/185 which seems to be a webpack issue.
This workaround worked for me:
import 'd3-transition'