From 08d3e607907ebfbc97a3b4fe95f9aa0c20d68bb7 Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Tue, 27 Feb 2024 02:02:28 -0500 Subject: [PATCH] fix: Default line width (#319) --- Client/src/app/chart/chart.models.ts | 2 +- Server/WebApi/Services/Models.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Client/src/app/chart/chart.models.ts b/Client/src/app/chart/chart.models.ts index 9127350f..67e38129 100644 --- a/Client/src/app/chart/chart.models.ts +++ b/Client/src/app/chart/chart.models.ts @@ -44,7 +44,7 @@ export interface IndicatorResultConfig { dataType: string; lineType: string; stack: string, - lineWidth: number; + lineWidth: number | null; defaultColor: string; fill: ChartFill; order: number diff --git a/Server/WebApi/Services/Models.cs b/Server/WebApi/Services/Models.cs index 71cebadf..303588ae 100644 --- a/Server/WebApi/Services/Models.cs +++ b/Server/WebApi/Services/Models.cs @@ -47,8 +47,8 @@ public record class IndicatorResultConfig public required string DataName { get; init; } public required string DataType { get; init; } public required string LineType { get; init; } - public string? Stack { get; init; } - public float? LineWidth { get; set; } + public string? Stack { get; set; } = null; + public float LineWidth { get; set; } = 2; public required string DefaultColor { get; init; } public ChartFill? Fill { get; set; }