[PR #1191] [MERGED] Added the ability to display smaller segmented pie charts #2576

Open
opened 2026-01-29 18:19:29 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1191
Author: @DanielSugdenPhoenix
Created: 10/11/2023
Status: Merged
Merged: 10/16/2023
Merged by: @akorchev

Base: masterHead: master


📝 Commits (7)

  • c47c9b8 Added functionality to allow the changing of the starting angle of, and the number of degrees the pie and donut charts span
  • bc6def6 Removed nullable on StartAngle and TotalAngle, added default values and removed unneeded checks
  • 9a7a132 Updated comment about default value of the StartAngle in RadzenPieSeries
  • 37905e5 Refactor the implementation of StartAngle and TotalAngle.
  • 66c385d Fix for rendering segments greater than180 degrees
  • 3d44fa7 Restore the demo.
  • 9a75adb Revert "Restore the demo."

📊 Changes

4 files changed (+63 additions, -63 deletions)

View changed files

📝 Radzen.Blazor/RadzenDonutSeries.razor (+4 -5)
📝 Radzen.Blazor/RadzenPieSeries.razor (+5 -6)
📝 Radzen.Blazor/RadzenPieSeries.razor.cs (+52 -50)
📝 RadzenBlazorDemos/Pages/DonutChartConfig.razor (+2 -2)

📄 Description

Added the ability to control the starting point and the size of the span for both Pie and Donut charts, functionality that could be useful for people wanting charts that don't span a full 360 degrees.

Tested across a full range of values for both the starting location and the size of the span, including checking the functionality of both the mouseover tooltip and the SeriesClick event of the chart

Screenshots:
image
image
image


🔄 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/radzenhq/radzen-blazor/pull/1191 **Author:** [@DanielSugdenPhoenix](https://github.com/DanielSugdenPhoenix) **Created:** 10/11/2023 **Status:** ✅ Merged **Merged:** 10/16/2023 **Merged by:** [@akorchev](https://github.com/akorchev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (7) - [`c47c9b8`](https://github.com/radzenhq/radzen-blazor/commit/c47c9b800273f3fee2afff600a55cf73c27ec487) Added functionality to allow the changing of the starting angle of, and the number of degrees the pie and donut charts span - [`bc6def6`](https://github.com/radzenhq/radzen-blazor/commit/bc6def613f6c01dd19c0f10629c0cfced2018dd5) Removed nullable on StartAngle and TotalAngle, added default values and removed unneeded checks - [`9a7a132`](https://github.com/radzenhq/radzen-blazor/commit/9a7a13259c69bce42b0b95ff0ee6249f4c329e99) Updated comment about default value of the StartAngle in RadzenPieSeries - [`37905e5`](https://github.com/radzenhq/radzen-blazor/commit/37905e575910b3071784b2753f5a8589afe5d815) Refactor the implementation of StartAngle and TotalAngle. - [`66c385d`](https://github.com/radzenhq/radzen-blazor/commit/66c385d41ba9e8710121076ac5796756fd9ef741) Fix for rendering segments greater than180 degrees - [`3d44fa7`](https://github.com/radzenhq/radzen-blazor/commit/3d44fa71b0c82cf38c9ba1cb68589021cb52637b) Restore the demo. - [`9a75adb`](https://github.com/radzenhq/radzen-blazor/commit/9a75adb9ab080b02077b9deb12bd55279b113dd2) Revert "Restore the demo." ### 📊 Changes **4 files changed** (+63 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenDonutSeries.razor` (+4 -5) 📝 `Radzen.Blazor/RadzenPieSeries.razor` (+5 -6) 📝 `Radzen.Blazor/RadzenPieSeries.razor.cs` (+52 -50) 📝 `RadzenBlazorDemos/Pages/DonutChartConfig.razor` (+2 -2) </details> ### 📄 Description Added the ability to control the starting point and the size of the span for both Pie and Donut charts, functionality that could be useful for people wanting charts that don't span a full 360 degrees. Tested across a full range of values for both the starting location and the size of the span, including checking the functionality of both the mouseover tooltip and the SeriesClick event of the chart Screenshots: ![image](https://github.com/radzenhq/radzen-blazor/assets/147621771/c165d7b0-73a5-4ca7-829d-ca07a4f4efe7) ![image](https://github.com/radzenhq/radzen-blazor/assets/147621771/7638da10-da99-4a7e-b8c3-965d536da048) ![image](https://github.com/radzenhq/radzen-blazor/assets/147621771/d4f25c53-5930-49fc-81ff-f9d2e4c4bf6e) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:19:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2576