From cfe117a62ad1a210667be92ac51ba1e551f88672 Mon Sep 17 00:00:00 2001 From: krut_ni Date: Tue, 4 Aug 2026 19:26:49 +0200 Subject: [PATCH] applied styles to the ChartBlock.razor --- app/MindWork AI Studio/Chat/ChartBlock.razor | 64 ++++++++++--------- .../Chat/ChartBlock.razor.cs | 9 +++ 2 files changed, 43 insertions(+), 30 deletions(-) diff --git a/app/MindWork AI Studio/Chat/ChartBlock.razor b/app/MindWork AI Studio/Chat/ChartBlock.razor index d28f4af1..48811bf8 100644 --- a/app/MindWork AI Studio/Chat/ChartBlock.razor +++ b/app/MindWork AI Studio/Chat/ChartBlock.razor @@ -4,36 +4,40 @@ @if (this.Result.Chart is { } chart) { - - @chart.Title - @if (chart.Type is ChartDefinitionType.PIE or ChartDefinitionType.DONUT) - { -
- -
- } - else - { -
- -
- } - @if (chart.Caption is not null) - { - - @chart.Caption - - } -
+
+ + @chart.Title + @if (chart.Type is ChartDefinitionType.PIE or ChartDefinitionType.DONUT) + { +
+ +
+ } + else + { +
+ +
+ } + @if (chart.Caption is not null) + { + + @chart.Caption + + } +
+
} else { diff --git a/app/MindWork AI Studio/Chat/ChartBlock.razor.cs b/app/MindWork AI Studio/Chat/ChartBlock.razor.cs index 3dc47153..5d627aec 100644 --- a/app/MindWork AI Studio/Chat/ChartBlock.razor.cs +++ b/app/MindWork AI Studio/Chat/ChartBlock.razor.cs @@ -7,6 +7,15 @@ public partial class ChartBlock : MSGComponentBase { private AxisChartOptions AxisChartOptions { get; } = new() { MatchBoundsToSize = true }; + private ChartOptions ChartOptions { get; } = new() + { + ChartPalette = + [ + "#236A50", "#F2D264", "#79AE90", "#C97857", "#4E7894", "#9B6B8F", + "#6A233D", "#6484F2", "#AE7997", "#57A8C9", "#946A4E", "#6B9B77", + ], + }; + [Parameter] public ChartBlockParseResult Result { get; set; } = ChartBlockParseResult.Invalid(string.Empty, string.Empty);