Vertical slider
✓ Published0🌍 Public
This example demonstrates a vertical slider widget built with D3 v5 and the d3-simple-slider library. It displays a percentage value (formatted to two decimal places) that users can adjust by dragging the slider handle along a vertical track. The slider is rendered as an SVG element inside a Bootstrap container, with tick marks and labels generated using d3.format and custom tick specifications. The code initializes the slider using d3.sliderLeft(), sets its min/max range from a predefined data array, and updates a paragraph element on each change event.
AI-generated descriptionThis line chart shows one week of temperature (in degrees Celcius) in cities around the world. The data comes from Data Canvas - Sense Your City.
MIT Licensed