Fork of Marks and Channels
This example breaks down the fundamental concepts of marks and channels in data visualization. It renders a radar-style chart from a small inline dataset of four skill categories. Each visualization module—controlling x-position, y-position, size, shape, hue, and line length—uses distinct D3 APIs, including `selection.each()`, `d3.symbol()`, `d3.schemeCategory10`, SVG attributes like `transform` and `fill`, and JavaScript modules. The view demonstrates how different channels can represent data values while maintaining consistent scales and positioning.
AI-generated descriptionA demonstration of basic D3 usage to implement the concept of Marks and Channels. Includes usage of:
- Point Marks by X, Y, Size
- Line mark varying in length
- Scaling factors
- SVG Rectangles
selection.each()- SVG Path Elements
d3.symbol()- SVG attributes
transformandfill - D3 Color Schemes
- JavaScript Modules
Part of the Constructing Visualizations Playlist.
See also blocks.roadtolarissa.com: Marks and Channels (a vanilla JavaScript version of this).