2024-10-06 14:23:43 +04:00

22 lines
593 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KryukovLib.Models
{
public class ChartConfig : DocumentConfig
{
public string ChartTitle { get; init; } = string.Empty;
public Location LegendLocation { get; init; }
public Dictionary<string, List<(string Name, double Value)>>? Data { get; init; }
public void CheckFields()
{
if (Data == null || Data.Count == 0)
throw new ArgumentNullException("Data count is null");
}
}
}