Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
SSree Yuktha Sunkara
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Activity-6

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes