[PR #1272] [MERGED] Add new Bar and Column Series property 'ColorMode' #2641

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

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1272
Author: @paulo-rico
Created: 12/6/2023
Status: Merged
Merged: 12/13/2023
Merged by: @akorchev

Base: masterHead: master


📝 Commits (10+)

  • 7d5e944 Column Chart - Position data labels above, level or below bar if positive, zero or negative, respectively.
  • 488e95a Merge branch 'radzenhq:master' into master
  • ebd102e Merge branch 'radzenhq:master' into master
  • 0729535 Add new series property 'ColorMode'.
  • 173fb66 Revert "Add new series property 'ColorMode'."
  • cb2fe21 ColorMode option 'Series' or 'PositiveNegative'.
  • 408f1dc Make Render method a bit more concise. Change property name to ChartSeriesColorMode
  • 85d6283 Code refactoring and property name change
  • ffa9490 Refactoring and renaming
  • acded6c Change the workings to generic ColorRanges rather than static PositiveNegative

📊 Changes

11 files changed (+149 additions, -29 deletions)

View changed files

📝 Radzen.Blazor/CartesianSeries.cs (+14 -5)
📝 Radzen.Blazor/RadzenBarSeries.razor (+7 -6)
📝 Radzen.Blazor/RadzenBarSeries.razor.cs (+16 -2)
📝 Radzen.Blazor/RadzenColumnSeries.razor (+5 -4)
📝 Radzen.Blazor/RadzenColumnSeries.razor.cs (+16 -2)
📝 Radzen.Blazor/RadzenStackedBarSeries.razor (+4 -3)
📝 Radzen.Blazor/RadzenStackedBarSeries.razor.cs (+16 -2)
📝 Radzen.Blazor/RadzenStackedColumnSeries.razor (+4 -3)
📝 Radzen.Blazor/RadzenStackedColumnSeries.razor.cs (+16 -2)
Radzen.Blazor/SeriesColorRange.cs (+29 -0)
📝 RadzenBlazorDemos/Pages/ColumnChartConfig.razor (+22 -0)

📄 Description

This property will enable the chart to color the bars by Series (as it is now) or by PositiveNegative, based on whether value is above or below zero.

Demo - razden.delaci.co.uk


🔄 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/1272 **Author:** [@paulo-rico](https://github.com/paulo-rico) **Created:** 12/6/2023 **Status:** ✅ Merged **Merged:** 12/13/2023 **Merged by:** [@akorchev](https://github.com/akorchev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`7d5e944`](https://github.com/radzenhq/radzen-blazor/commit/7d5e944c03073a864988329c9e10307ec58db49c) Column Chart - Position data labels above, level or below bar if positive, zero or negative, respectively. - [`488e95a`](https://github.com/radzenhq/radzen-blazor/commit/488e95a8364630ab8c1bb17b459e3612e1560d7f) Merge branch 'radzenhq:master' into master - [`ebd102e`](https://github.com/radzenhq/radzen-blazor/commit/ebd102ea61f0b9a179cf545a68de78f25933145d) Merge branch 'radzenhq:master' into master - [`0729535`](https://github.com/radzenhq/radzen-blazor/commit/07295350c6f4949f47fc4707d67c8a821f14dc81) Add new series property 'ColorMode'. - [`173fb66`](https://github.com/radzenhq/radzen-blazor/commit/173fb6630d5b474822db1c1313576c22c2fa4648) Revert "Add new series property 'ColorMode'." - [`cb2fe21`](https://github.com/radzenhq/radzen-blazor/commit/cb2fe2114c992c3b4b5b1bd931b9dd4b65c70706) ColorMode option 'Series' or 'PositiveNegative'. - [`408f1dc`](https://github.com/radzenhq/radzen-blazor/commit/408f1dc36acf8b7e6fb6eb40256db4ede8d6d66f) Make Render method a bit more concise. Change property name to ChartSeriesColorMode - [`85d6283`](https://github.com/radzenhq/radzen-blazor/commit/85d6283df5b393b8e5218892d6013fcee8042f2c) Code refactoring and property name change - [`ffa9490`](https://github.com/radzenhq/radzen-blazor/commit/ffa949037b180e3c5338e3b541584d4f7b614038) Refactoring and renaming - [`acded6c`](https://github.com/radzenhq/radzen-blazor/commit/acded6cc7c2ecec47471d79c15a8e83dd771b773) Change the workings to generic ColorRanges rather than static PositiveNegative ### 📊 Changes **11 files changed** (+149 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/CartesianSeries.cs` (+14 -5) 📝 `Radzen.Blazor/RadzenBarSeries.razor` (+7 -6) 📝 `Radzen.Blazor/RadzenBarSeries.razor.cs` (+16 -2) 📝 `Radzen.Blazor/RadzenColumnSeries.razor` (+5 -4) 📝 `Radzen.Blazor/RadzenColumnSeries.razor.cs` (+16 -2) 📝 `Radzen.Blazor/RadzenStackedBarSeries.razor` (+4 -3) 📝 `Radzen.Blazor/RadzenStackedBarSeries.razor.cs` (+16 -2) 📝 `Radzen.Blazor/RadzenStackedColumnSeries.razor` (+4 -3) 📝 `Radzen.Blazor/RadzenStackedColumnSeries.razor.cs` (+16 -2) ➕ `Radzen.Blazor/SeriesColorRange.cs` (+29 -0) 📝 `RadzenBlazorDemos/Pages/ColumnChartConfig.razor` (+22 -0) </details> ### 📄 Description This property will enable the chart to color the bars by Series (as it is now) or by PositiveNegative, based on whether value is above or below zero. Demo - [razden.delaci.co.uk](razden.delaci.co.uk) --- <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:48 +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#2641