d3-legend icon indicating copy to clipboard operation
d3-legend copied to clipboard

TypeError: cell.transition is not a function

Open stormpython opened this issue 7 years ago • 2 comments

Receiving the following error while using d3-svg-legend with d3 v4:

screen shot 2017-06-08 at 10 47 39 am

Work around that seems to work is to import d3-transition into my file.

import * as d3 from 'd3-transition'

stormpython avatar Jun 08 '17 18:06 stormpython

met the same problem

TomHuangCN avatar Apr 09 '18 05:04 TomHuangCN

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'

andreaskundig avatar Aug 29 '19 17:08 andreaskundig