
內容簡介
總結:Simple Pie Chart Block 是一個能夠使用 ChartJS 圖表庫建立優雅且簡約的圓餅圖的 WordPress 外掛。您可以直接上傳數據至區塊實例,而無需將數據格式化為 CSV 文件。您可以自訂每個圓餅片段的百分比、顏色和相關數據 + 標籤。同時支援圓餅圖和甜甜圈圖類型的切換。
問題與答案:
1. 這個外掛可以做什麼?
- 可以直接在 WordPress 區塊編輯器內創建和自訂圓餅圖。
2. 可以如何添加、更新和移除圓餅圖中的片段?
- 可以透過具有特定標題、數值、百分比和顏色的功能進行上述操作。
3. 怎麼切換圖例的顯示並自訂樣式和背景色?
- 可以透過開關控制圖例顯示,並自訂其樣式和背景色。
4. 這個外掛可以選擇哪些圖表類型?
- 可以在圓餅圖和甜甜圈圖類型之間做選擇。
5. 該如何調整圖表的寬度?
- 可以透過外掛的設置進行調整。
外掛標籤
開發者團隊
原文外掛簡介
Simple Pie Chart Block allows you to create elegant and minimal pie charts using the ChartJS library. You can upload data directly to the block instance without having to format your data into a CSV file upload. You can customize each slice’s percentage, color and associated data + labels. You also toggle between pie and doughnut chart types.
Features:
Create and customize pie charts directly within the WordPress block editor.
Add, update, and remove slices with specific titles, values, percentages, and colors.
Toggle the display of legends and customize their styles and background colors.
Choose between Pie and Doughnut chart types.
Usage
In the WordPress block editor, add the “Simple Pie Chart” block to your post or page.
Use the block settings to customize your pie chart:
Add slices with titles, values, percentages, and colors.
Toggle the legend display and customize its style and background color.
Choose between Pie and Doughnut chart types.
Adjust the chart width.
Github
https://github.com/cheestudio/simple-pie-chart-block
