Skip to main content
100%

D3 SVG Tutorial + D3 Animations Tutorial

✓ Published0🌍 Public
JJamestiberiuseanes
Last edited Feb 12, 2016
Created on Feb 11, 2016

This example combines SVG rendering with D3 animations by generating 50 random data points and plotting them as circles on a scatterplot with linear scales and axes. The visualization uses D3.js version 3.5.5 to create SVG elements, including circles, axes, and scales, while a button triggers animated transitions of the circles across the chart. The code includes both the SVG tutorial’s static chart construction and animation commands, though the author notes difficulty combining the two sections. Rendering occurs entirely through D3’s SVG API with interactive button controls.

AI-generated description

VI3 - James Eanes

Three things learned from these tutorials:

  1. Understanding the animation tutorial was very difficult - it doesn't give you the source as you go (like the other D3 tutorial), it just embeds the examples in the larger source of the main page.

  2. Combining two sections of code using <div> tags is completely beyond me. I will have to look more into this, but I have no idea how to do it at this point.

  3. The use of a small set of commands to animate objects on the screen is very powerful and extemely useful...but I imagine could be very overdone and annoying to the user.

Similar vizzes