Skip to main content
100%

Assignment2_Task8_Pie chart

✓ Published0🌍 Public
Ssreekarthanda@gmail.com
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

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 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