Skip to main content
100%

Marks and Channels

✓ Published0🌍 Public
Kkratikashetty1102@gmail.com
Last edited Feb 7, 2023
Created on Feb 7, 2023
Forked from Marks and Channels

This example illustrates the fundamental concept of encoding data through different visual channels—position, length, size, shape, and color—using D3.js. Five distinct marks, each with a static array of five data points, are rendered in separate panels to demonstrate how changing a single channel alters the representation of the same data. The code uses the D3 `select`, `join`, and `attr` API to build SVG circles, rectangles, and paths, applying `schemeCategory10` for categorical colors and custom functions for scaling and positioning.

AI-generated description
MIT Licensed

Similar vizzes