Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

colour Scale test

Public visualization

Viewing a saved revision (read-only)

442adc9865fc4e9bbac734f850eb7622

colour Scale test

1 star0🌍 Public
DDonald Bagwell
Last edited Dec 11, 2023
Created on Dec 11, 2023
Forked from Fork of test

This example displays a correlation matrix as a square grid of colored cells, using a diverging red-white-navy color scale to represent values from -1 to 1. The dataset is a correlation matrix of automobile metrics (from the classic `mtcars` data), with each cell showing a correlation coefficient or variable name. The lower triangle uses text values, while the upper triangle renders circles whose radius scales with the absolute correlation. Built with D3 v3 and SVG, it includes a custom color legend axis generated with `d3.svg.axis` and a series of colored rectangles.

AI-generated description