Closed lukekentwell closed 8 years ago
I’m not sure what’s going wrong here. It’s hard to tell just from looking at a snippet rather than being able to run a live example, but then, I probably don’t have time to debug a large amount of code anyway. (Sorry.) I see two things that are suspicious:
import "d3-transition";
. If you want to import a specific symbol from d3-transition for use, such as d3.transition, then you should say import {transition} from "d3-transition";
.Here’s a trivial example I just made so you can see a minimal example of how to implement a transitionable component:
http://bl.ocks.org/mbostock/b6fbf8119a10bb8cc3fa730e61d27240
If you’re able to reduce this down to something smaller that I can run in my browser, I’d be happy to take another look.
Hi Mike,
I am attempting to make a simple plugin that renders a column plot using a set of given scales and some data bound to a selection. I am up to the point of getting the columns to animate but cannot get my transition times to work.
I have used your axis as a starting point (for the general pattern) however when the transition for the columns is applied it always has a time of '250'.
This is my first adventure with the new ES6 module approach and I am not sure what im doing wrong.
Any advice would be much appreciated.
Below is the plugin code..
code thats calling this..