返回资讯中心
外部精选
软件工程
#开发者实时流

Show HN: I made the most simple pie chart maker

A pie chart (or circle graph) is a circle divided into slices, where each slice shows one category’s share of a whole. The bigger the value, the bigger the slice, and all the slices together always make 100%. Because pe…

Hacker News 最新atharvtathe2026/10/20 · 27 天前3 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

A pie chart (or circle graph) is a circle divided into slices, where each slice shows one category’s share of a whole. The bigger the value, the bigger the slice, and all the slices together always make 100%. Because people instantly understand fractions of a circle, pie charts are one of the quickest ways to show proportions: how a budget is split, which answer won a survey, or what share of the market each brand holds.

Cut a hole in the middle and you have a donut chart, which leaves room for a total. Show only the top half and you get a half pie chart. Put several data sets in rings around each other and you have a nested pie chart.

Each slice’s size comes from two simple formulas:

For example, if you spend $1,400 of a $3,200 budget on rent, rent is 1,400 ÷ 3,200 = 0.4375, so it takes 43.75% of the pie and a slice of 157.5°. This tool does the calculation for every row as you type. For a full step-by-step explanation, see the pie chart calculator.

Click one of the examples under the data table to load it instantly, then replace the numbers with your own:

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →