Presentation_Task2
✓ Published0🌍 Public
This visualization shows a red line chart tracking product prices from 2019 to 2023, with each year plotted as a point connected by a path. The data, loaded from a CSV file containing shopping mall transaction records, is aggregated by year. The code uses D3 v7 to create an SVG graphic, employing `d3.scaleBand` for the x-axis years, `d3.scaleLinear` for the price range, and `d3.line` to generate the path. Axes are added with `d3.axisBottom` and `d3.axisLeft`, and text labels identify the year and price dimensions.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed