Decision Tree III
This visualization displays a decision tree of farmers market data, branching through product categories like baked goods, cheese, and vegetables to reveal patterns in market offerings. The tree uses an organic, gooey aesthetic with SVG filters for blur and color matrix effects, while animated nodes and edges grow outward using d3’s tree layout and the `.ancestors()` function to position descendants at ancestor depths. Built with d3.v4 and Vue, it renders in SVG with smooth transitions, sourcing real market attributes from a JSON dataset.
AI-generated descriptionA visualization of a decision tree with SVG filters to make it look more organic animated to make it seem to grow in a similarly organic fashion.
The animation is facilitated by taking advantage of the .ancestors() function attached to every node generated by d3's tree layout. By getting an array of ancestors and filtering it to the ancestor at a specified depth (as seen in the ancestorAtDepth function) you can easily set a descendent node's position to any ancestor position.
forked from <a href='http://bl.ocks.org/emeeks/'>emeeks</a>'s block: <a href='http://bl.ocks.org/emeeks/71f1f45fce636654d4b9e1b5c469db6f'>Decision tree III</a>