[PR #384] [MERGED] Implement Pie widget #375

Closed
opened 2026-03-03 16:24:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mum4k/termdash/pull/384
Author: @VincenzoManto
Created: 8/23/2025
Status: Merged
Merged: 9/28/2025
Merged by: @mum4k

Base: develHead: master


📝 Commits (8)

  • a3b6126 Implement Pie widget with options and drawing functionality
  • b54fe2d Add Pie widget documentation with demo instructions
  • 74c3a27 Refactor options validation and enhance ColorOption function for pie chart customization
  • 527a603 Refactor pie chart drawing logic to simplify radius calculations and improve arc rendering
  • c895777 Add test case for drawing a two-slice pie chart with verification
  • fb25721 Refactor pie widget code for improved readability and organization
  • 74d9298 Remove unnecessary blank line in pie chart drawing function documentation
  • 4ef3ff7 Update README and pie widget documentation for clarity and accuracy

📊 Changes

5 files changed (+466 additions, -0 deletions)

View changed files

📝 README.md (+9 -0)
widgets/pie/options.go (+57 -0)
widgets/pie/pie.go (+162 -0)
widgets/pie/pie_test.go (+173 -0)
widgets/pie/piedemo/piedemo.go (+65 -0)

📄 Description

As in #383 this is an implementation of a Pie widget (better a donut multi values)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mum4k/termdash/pull/384 **Author:** [@VincenzoManto](https://github.com/VincenzoManto) **Created:** 8/23/2025 **Status:** ✅ Merged **Merged:** 9/28/2025 **Merged by:** [@mum4k](https://github.com/mum4k) **Base:** `devel` ← **Head:** `master` --- ### 📝 Commits (8) - [`a3b6126`](https://github.com/mum4k/termdash/commit/a3b6126d1c951ea5d860c5ae6e7bff3ce458a26f) Implement Pie widget with options and drawing functionality - [`b54fe2d`](https://github.com/mum4k/termdash/commit/b54fe2d43b443b03012a821dcd143e6a6d8e07c3) Add Pie widget documentation with demo instructions - [`74c3a27`](https://github.com/mum4k/termdash/commit/74c3a27c30410301a16c30d2951da9f2578b366d) Refactor options validation and enhance ColorOption function for pie chart customization - [`527a603`](https://github.com/mum4k/termdash/commit/527a603c429b696881388b69b3f5f216b0cda248) Refactor pie chart drawing logic to simplify radius calculations and improve arc rendering - [`c895777`](https://github.com/mum4k/termdash/commit/c8957779e6961c660ed3adac8cf4c4fe156c55a2) Add test case for drawing a two-slice pie chart with verification - [`fb25721`](https://github.com/mum4k/termdash/commit/fb2572144c933212c42d1e70f8330bcedcd74189) Refactor pie widget code for improved readability and organization - [`74d9298`](https://github.com/mum4k/termdash/commit/74d92982e0b6aa9c2aad6558d263b8c74e22e050) Remove unnecessary blank line in pie chart drawing function documentation - [`4ef3ff7`](https://github.com/mum4k/termdash/commit/4ef3ff70ea5110af4cc1f08eb1fc7fb7cab996a1) Update README and pie widget documentation for clarity and accuracy ### 📊 Changes **5 files changed** (+466 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+9 -0) ➕ `widgets/pie/options.go` (+57 -0) ➕ `widgets/pie/pie.go` (+162 -0) ➕ `widgets/pie/pie_test.go` (+173 -0) ➕ `widgets/pie/piedemo/piedemo.go` (+65 -0) </details> ### 📄 Description As in #383 this is an implementation of a Pie widget (better a donut multi values) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:24:09 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termdash#375
No description provided.