Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Racecard 2 Bar Graph with D3.js

Public visualization

Viewing a saved revision (read-only)

e206700fabab4ef09d5f53269b576c27

Racecard 2 Bar Graph with D3.js

0 stars0🌍 Public
Ssandugabriel2019
Last edited Mar 6, 2022
Created on Mar 6, 2022

A horizontal bar chart displays the forecast odds for eight racehorses, with each bar labeled by the horse's name. The chart uses D3.js v7, loading data from a CSV file and rendering SVG elements. The code applies `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to position bars and axes, with bars styled in steelblue. The layout includes explicit margins and an inner plotting area.

AI-generated description