Skip to content

Commit fb757f0

Browse files
committed
Refactor CategoricalSixColors to reduce color count
Updated the `CategoricalSixColors` property in the `ColorUtility` class to return an array of 6 unique colors instead of 12. Removed redundant instances of the color `#e8c600` for a cleaner and more concise representation. NOTE: This commit message is auto-generated using GitHub Copilot.
1 parent 8e6bfb5 commit fb757f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BlazorExpress.ChartJS/Utils/ColorUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public static class ColorUtility
88
/// Returns 6 categorical colors in the format #RRGGBB.
99
/// <seealso href="https://spectrum.adobe.com/page/color-for-data-visualization/" />
1010
/// </summary>
11-
public static string[] CategoricalSixColors => new[] { "#0fb5ae", "#4046ca", "#f68511", "#de3d82", "#7e84fa", "#72e06a", "#147af3", "#7326d3", "#e8c600", "#e8c600", "#e8c600", "#e8c600" };
11+
public static string[] CategoricalSixColors => new[] { "#0fb5ae", "#4046ca", "#f68511", "#de3d82", "#7e84fa", "#72e06a" };
1212

1313
/// <summary>
1414
/// Returns 12 categorical colors in the format #RRGGBB.

0 commit comments

Comments
 (0)