Skip to main content
100%

FFT-based transition on timelines

✓ Published0🌍 Public
KKcnarf
Last edited Dec 3, 2018
Created on Mar 24, 2017

This example demonstrates a three-stage transition between two erratic timelines, using simplified path versions to make the morphing easier to follow. The initial path first simplifies, then morphs into the final path’s simplified form, and finally complexifies into the final shape. Two models compute these simplifications: a Fast Fourier Transform (FFT) and a Moving Average. The code uses D3.js v4 with SVG and animated transitions, applying `d3.line` and `d3.curveBasis` to render the paths, with data from a CSV file.

AI-generated description

This block experiments a way to make transitions between erratic pathes easier to understand/follow. The idea is to use simplified versions of the paths in order to ease the human comprehension of the transition. Simplified versions of paths are computed thanks to some models.

Hence, the transition from an intial path to a final path takes 3 stages:

  1. simplification: transition from the initial path to its simplified version
  2. simple morphing: transition from the simplified version of the initial path to a simplified version of the final path; this step eases human comprehension
  3. complexification: transition from the simplified version of the final path to the final path

This block uses two models to compute the simplified versions of paths:

  1. a Fast Fourier Transform (FFT) and inverse Fast Fourier Transform (iFFT) algorithms
  2. a Moving Average algorithm

Acknowledgments:

gpl-3.0 Licensed

Similar vizzes