Skip to main content
100%

activity6task2

✓ Published0🌍 Public
Ssaitejakaranam10@gmail.com
Last edited Apr 6, 2024
Created on Apr 6, 2024
Forked from Hello VizHub

This example displays a horizontal stacked bar chart comparing smartphone brand market share across five discount ranges, from "Below 10%" to "Above 40%." Rendered using D3 v5, the visualization loads data from a local CSV file and uses the `d3.select` API to bind the chart to the DOM. The chart segments each brand's bar proportionally, with colors distinguishing the discount brackets. The code imports local ES6 modules for the message text, demonstrating modular integration alongside D3’s UNPKG delivery.

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