Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Level Component 1

Public visualization

Viewing a saved revision (read-only)

c364b51563ff472eaba31b4200dd57dd

Level Component 1

0 stars0🌍 Public
WWRCIECH
Last edited Jan 29, 2023
Created on Jan 24, 2023

A bar chart displays a single value as a filled rectangle inside an outlined container, with the fill amount updating every 100 milliseconds. The example uses a custom reusable D3 component (`levelComponent`) with `d3.scaleLinear` to map the data value to pixel width, `d3.transition` for smooth animations, and SVG rendering. A `setInterval` updates the data, and the component re-renders with animated transitions. The chart is interactive-ready through a `d3-dispatch` event system for mouse interactions.

AI-generated description

Level Component.

TODO:

  • Add axis
  • Add fill percentage
  • Add colors
  • Add lenght/width
  • Curved level?
  • Finish of rectangle/ Maybe Path?
  • Transition animation definitions
  • Hovering
  • Tips