Skip to main content
100%

D3 Page Template

✓ Published0🌍 Public
SSushanta77
Last edited Aug 1, 2019
Created on Aug 1, 2019
Forked from Customizing Axes

This interactive line chart from D3 v4 displays monthly sales data for three fruits (strawberry, grape, and blueberry) across two years (2015 and 2016), using a dropdown menu to switch between fruits. The visualization uses `d3.line()` to generate smooth paths from the CSV data and `d3.scaleTime()` for the month-based x-axis. A callback on the dropdown's `change` event triggers a transition that animates the paths over one second, enabling dynamic comparison of seasonal sales patterns across different fruit categories.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes