Skip to main content
100%

Pseudo Visualization

✓ Published0🌍 Public
PParth Shroff
Last edited Sep 26, 2024
Created on Sep 26, 2024
Forked from Marks and Channels

This example demonstrates fundamental D3 visualization concepts by encoding a simple array of five values through multiple mark types and channels. The visualization presents the same data points as circles varied by x-position, y-position, and size, as bars with varying length, and as distinct SVG path symbols, with one view using a red hue. The implementation uses D3's `select`, `join`, and `.each()` methods, along with SVG attributes like `transform` and `fill`, and the `d3.symbol()` function to generate shapes.

AI-generated description

A 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 transform and fill
  • 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).

MIT Licensed

Similar vizzes