From 49a967a6ecd9785b7b61deb052cb2be1a4e68f29 Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 13 Mar 2023 16:07:23 +0800 Subject: [PATCH] fix: RegressionLine Serialization (#113) (#114) --- .../Components/Plots/Scatter/ScatterConfig.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/AntDesign.Charts/Components/Plots/Scatter/ScatterConfig.cs b/src/AntDesign.Charts/Components/Plots/Scatter/ScatterConfig.cs index 1762c62..b31cbf0 100644 --- a/src/AntDesign.Charts/Components/Plots/Scatter/ScatterConfig.cs +++ b/src/AntDesign.Charts/Components/Plots/Scatter/ScatterConfig.cs @@ -246,14 +246,15 @@ namespace AntDesign.Charts public class RegressionLineConfig : IRegressionLineConfig { - [JsonPropertyName("type")] + [JsonPropertyName("type")] public string Type { get; set; } - [JsonPropertyName("style")] + [JsonPropertyName("style")] public IGraphicStyle Style { get; set; } - [JsonPropertyName("algorithm")] + [JsonIgnore] public OneOf Algorithm { get; set; } + [JsonPropertyName("algorithm")] public object AlgorithmMapping => Algorithm.Value; - [JsonPropertyName("top")] + [JsonPropertyName("top")] public bool? Top { get; set; } } }