🌍 Public
Viewing a saved revision (read-only)
ad9a7a61f70d4b05986b9520f427c08e
Fork 1 project of area chart
YYashwanth0311
Last edited Apr 14, 2024
Created on Apr 14, 2024
This example displays two linked area charts showing temperature and pressure variations across the months of 2020, with interactive buttons allowing the selection of data for 2021 or 2022. The visualizations use Chart.js to render line charts with enabled fill, displaying temperature in Celsius and pressure in hPa. The charts are drawn on separate HTML canvas elements, and the button click handlers trigger an `updateChart` function that switches the displayed dataset.
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.