Skip to main content
100%

Simple Bar Chart with Hover

✓ Published0🌍 Public
JJingxuan Yang
Last edited Feb 21, 2024
Created on Feb 21, 2024

This example displays the top 10 houses by living area in square feet, using a simple bar chart. Each bar represents a house ID, with height encoding its living area. The visualization is built with D3, using `scaleBand` for the x-axis, `scaleLinear` for the y-axis, and `axisLeft` for the axis ticks. It includes labeled axes and an inner rectangle fill, with bars rendered as SVG rectangles. The data is sourced from the `@RenoBlitz/dataset01` package, sorted in descending order via `d3.descending`.

AI-generated description

A bar chart showing the top 10 houses with largest living area.

Challenge

  • Fork this viz and modify it to show your own data
MIT Licensed

Similar vizzes