🌍 Public
Viewing a saved revision (read-only)
e87f40aa40d74964b8701f33e3d08acb
Assignment2_Q1
This example shows the distribution of 15 fruit categories as a pie chart, with values ranging from Apples at 25 down to several fruits at 1. Plotly.js generates the chart in an 800x600 pixel container, using the `Plotly.newPlot` API with a single pie trace and a legend positioned to the right. The data is hardcoded as JavaScript arrays of labels and values, and the layout includes a title and axis labels (though the axes are unused for a pie chart). No external data file is loaded at runtime.
AI-generated description