// Copyright © Selmo Technology GmbH. All Rights Reserved

using Microsoft.AspNetCore.Components;
using Radzen;

namespace SelmoStudio.Hmi.Server.SelmoHmi.Charts.Components
{
    public partial class ChartComponentBase : SelmoStudio.Hmi.Server.Shared.Components.BaseComponents.ComponentBase
    {
        [Parameter]
        public bool ShowDataLabels { get; set; } = false;

        [Parameter]
        public EventCallback<object> CallBack { get; set; }

        protected async Task OnSeriesClick(SeriesClickEventArgs args)
        {
            await CallBack.InvokeAsync(args);
        }
    }
}