Skip to main content
100%

D3 Ternary Plot

✓ Published0🌍 Public
KKelvinZCH
Last edited Jun 9, 2017
Created on Jun 9, 2017

A D3 ternary plot displays compositional data with three variables summing to 100%, using an interactive animation. The visualization renders an equilateral triangle grid with major and minor tick lines along the A, B, and C axes, plus labeled tick marks. SVG circles represent data points, which change when a "Data change" button is clicked. The code builds the plot using the D3.js library (version 3.1.6) with raw SVG attributes and transformations, computing point coordinates from the three-part ratios and using `selectAll` and `append` to construct the axes and labels dynamically.

AI-generated description

A ternary plot forked from this one by Marielle Lange

forked from <a href='http://bl.ocks.org/tomgp/'>tomgp</a>'s block: <a href='http://bl.ocks.org/tomgp/7674234'>Ternary plot</a>

mit Licensed

Similar vizzes