在線即時計算器 · 純前端本地秒算 · 零數據上傳

🧰 Pie Chart Maker 計算機

專業免費的 Pie Chart Maker 計算機。純前端本機毫秒級計算、零資料上傳、極致隱私保護。提供詳細公式推導、實例示範與常見問答。

即時推算結果 (Computed Output)
100 sum across 3 categories
專業公認計算模型,即時運算完畢
📜 計算歷史記錄 (試算軌跡)
尚無歷史記錄,每次點擊「計算」將在此留下試算軌跡...

What is the Pie Chart Maker?

This tool turns a list of category labels and numeric values into a pie chart. For each category it calculates the percentage share of the whole and the slice angle in degrees, then draws the chart so you can see the breakdown at a glance. It works for survey results, market share, budget categories, election seat shares, weather forecasts, school homework, or any set of comparable numbers. The math is pure arithmetic, so it applies the same everywhere with no country-specific rules.

How to use it

Enter a label and a value for each category. Labels are optional; blank labels are auto-named "Item 1", "Item 2", and so on. Leave a row completely empty to skip it. You can add an optional chart title and a start angle (the rotation of the first slice; it does not change the percentages). Values must be zero or greater, since a pie slice cannot have a negative angle.

The formula explained

First the tool sums every value to get the total T. Each category's percentage is its value divided by T, multiplied by 100. Its slice angle is its value divided by T, multiplied by 360, because a full circle is 360 degrees. By definition the percentages add up to 100% and the angles add up to 360° (small differences can appear after rounding). If the total is zero, no division is performed and every slice shows 0% / 0°.

Percent_i = ((Value_i) ÷ (\sum Value)) × 100% \qquad Angle_i = ((Value_i) ÷ (\sum Value)) × 360^{\circ}

Worked example

Suppose Sunny = 50, Cloudy = 30, Rain = 20. The total is 100. Sunny is 50/100 × 100 = 50.0% and 50/100 × 360 = 180.0^{\circ}. Cloudy is 30.0% and 108.0°. Rain is 20.0% and 72.0°. The percentages sum to 100% and the angles sum to 360°, so the chart draws three slices of 180°, 108° and 72°.

使用注意事項與精準校對原則(6 大核心守則)

📐 1. 嚴格對齊輸入量綱與單位

輸入各項數值時請務必確認量綱(例如小時、天數、金額、百分比),避免單位不匹配引發推算偏差。

🔒 2. 純前端本機毫秒級隱私保障

所有計算邏輯 100% 在您的終端瀏覽器內完成,資料絕不上傳伺服器,嚴格守護商業與個人隱私。

📊 3. 符合公認學術與產業計算模型

演算法嚴格遵循國際通用數學公式與標準計算模型,經多重情境交叉核對,數值嚴密精確。

📋 4. 一鍵複製與免登入 PDF 匯出

支援一鍵複製推算結果字串至剪貼簿,亦可直接點擊列印按鈕輸出純淨 PDF 工作報表。

🔄 5. 多情景敏感度動態對比

建議針對極端值與多組預期情景分別試算,觀察輸出數據的波動區間,輔助做出更穩健的決策。

🛡️ 6. 專業諮詢與日常參考免責聲明

本工具運算結果供日常排程、學業研習與事前參考之用,如涉及重大法規或投資決策請諮詢持證專家。

常見問題 (FAQ)

Do my values have to be percentages?
No. Use any consistent unit — people, votes, dollars, counts. The tool converts them to shares automatically.
What if my values do not add up to 100?
That is fine. The percentages are computed from the actual total, whatever it is.
Can I use negative numbers?
No. A pie slice represents a part of a whole, so negatives are treated as zero.