Skip to main content
100%

Tricontour flower

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Aug 27, 2019
Created on Aug 25, 2019

This example visualizes a flower-shaped set of contour polygons overlaid with colored points, demonstrating the d3-tricontour library for triangular contouring. The data is generated procedurally on a polar grid, with values based on a cosine function of radius and angle. The code uses d3-tricontour to compute contours, d3.geoPath for rendering paths, and d3.scaleSequential with the Turbo color scheme to map contour values to colors. Points are drawn as small circles with fills matching the color scale. The SVG rendering is styled with a dark background, and the visualization is built using D3 v5 and blockbuilder.org.

AI-generated description

Simple demonstration of d3-tricontour, reproducing this matplotlib demo.

Built with blockbuilder.org

mit Licensed

Similar vizzes