Skip to main content
100%

2_Question

✓ Published0🌍 Public
Ppenumutchu.manobhiram@gmail.com
Last edited Apr 11, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This example visualizes car brand specifications as a stacked bar chart, where each bar represents a vehicle make and is divided into three colored segments for horsepower, torque, and highway MPG. The chart uses d3.stack() to compute stacked series from the CSV data, with d3.scaleBand positioning makes along the y-axis and d3.scaleLinear mapping values to the x-axis. Hovering over any segment triggers a tooltip displaying the specific spec type and value, while the chart includes axes with labels and a title rendered using SVG.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes