// Copyright © Selmo Technology GmbH. All Rights Reserved

using Microsoft.AspNetCore.Components;
using Radzen.Blazor;
using SelmoStudio.Hmi.Server.SelmoHmi.Charts.Model;

namespace SelmoStudio.Hmi.Server.SelmoHmi.Charts.Components
{
    public partial class ComplexChartComponentBase : ChartComponentBase
    {
        [Parameter]
        public IList<IChartItem> ChartData { get; set; }

        [Parameter]
        public LineType LineType { get; set; } = LineType.Dashed;

        [Parameter]
        public string AxisTitle { get; set; }

        [Parameter]
        public bool AxisGridLinesVisible { get; set; } = true;

        [Parameter]
        public int AxisPadding { get; set; } = 20;

        [Parameter]
        public Func<object, string> AxisFormatter { get; set; }
    }
}