Skip to main content
100%

Untitled

✓ Published0🌍 Public
Hhotdoujiang
Last edited Sep 19, 2019
Created on Sep 19, 2019

This example shows a 12-axis radar chart comparing the economic freedom of China and the United States, using 12 indicators from the World Economic Freedom Index dataset. The chart displays two colored polygons, one for each country, overlaid on a grid of concentric levels, with axis labels and percentage values. It uses D3.js to compute the scales and paths, applying a linear radius scale (`d3.scaleLinear`) and a cardinal-closed curve (`roundStrokes`) for a smooth silhouette. The data is hardcoded as arrays of key-value pairs, and the `RadarChart` function customizes the chart’s dimensions, margins, and color scheme.

AI-generated description
MIT Licensed

Similar vizzes