Assignment2_Task8_Pie chart
✓ Published0🌍 Public
A pie chart displays the market share of car companies, with slices for Ford, Mazda, Toyota, Honda, and others. The chart uses Plotly's `newPlot` function to render the visualization, with labels and percentage values shown inside each slice using radial text orientation. The dataset is a static array of label-value pairs, and the layout specifies a 500 by 400 pixel chart with the title "Market share of car companies." The code loads Plotly via a CDN script tag and defines the chart data and layout objects in JavaScript.
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