Skip to main content
100%

Qualitative color scale

✓ Published0🌍 Public
KKwasi Acquaye
Last edited Mar 4, 2024
Created on Mar 4, 2024

A scatterplot displays six data points across three qualitative categories, using an ordinal color scale to distinguish category membership. The visualization employs d3.scaleOrdinal with d3.schemeCategory10 to assign colors to points, and includes a color legend generated via the d3-legend library. The code loads CSV data with d3.csv, converts string values to numbers, and renders circles and axes using SVG elements within a D3 v6 framework.

AI-generated description

X_Value,Y_Value,Category 30,70,A 40,90,B 50,60,C 60,40,A 70,100,B 80,20,C

MIT Licensed

Similar vizzes