Activity6_Task2
✓ Published0🌍 Public
This bar chart displays average genre ratings across six categories—Action, Adventure, Comedy, Drama, Horror, and Sci-Fi—expressed as percentages. Built with Chart.js 3.7.0 and rendered on a Canvas element, the visualization loads from CDN and uses a `getElementsAtEventForMode` click handler to alert the selected bar’s label and value. The chart applies styling through custom `backgroundColor` and `borderColor` arrays, with tooltips and axis ticks configured for percentage formatting. Data originates from a local CSV file, though the example uses hardcoded values.
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