mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-26 19:05:52 +03:00
[PR #382] [CLOSED] Pie chart (multivalue donut) #374
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#374
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mum4k/termdash/pull/382
Author: @VincenzoManto
Created: 8/23/2025
Status: ❌ Closed
Base:
master← Head:master📝 Commits (10+)
bd606b2Implement Pie widget with options and validation; add demo and testsc462e7dAdd Pie widget documentation and demo instructions to README253fc26Refactor options.go to include necessary imports for option validation444eb92Refactor Pie widget to remove validation for values and adjust color handling in options36fe9cbRemove unused imports and change DefaultColors to a var declaration in options.gofdcf8bbRemove color validation from options as it is not required5dc0455Refactor pie widget tests and demo to remove unused imports and simplify value handling4777e0cRemove unused import from pie_test.goac1f3ceSet default colors in Pie widget if none are providedc44e7a1Remove test case for empty colors in pie chart📊 Changes
5 files changed (+429 additions, -0 deletions)
View changed files
📝
README.md(+12 -0)➕
widgets/pie/options.go(+50 -0)➕
widgets/pie/pie.go(+167 -0)➕
widgets/pie/pie_test.go(+135 -0)➕
widgets/pie/piedemo/piedemo.go(+65 -0)📄 Description
A pie chart implementation used in Datacmd as you can see below.
If something must be changed in tests or options definitions, let me know
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.