// Copyright © Selmo Technology GmbH. All Rights Reserved

using SelmoStudio.Hmi.Server.SelmoHmi.Charts.Model;
using SelmoStudio.Hmi.Server.TestSetup;

namespace SelmoStudio.Hmi.Server.SelmoHmi.Dashboard.Components
{
    public partial class DashboardPieChartComponent : DashboardComponentBase
    {
        private IChartItem _chartData { get; set; }

        protected override Task OnParametersSetAsync()
        {
            // TODO Get the data source in a proper way using the service
            _chartData = TestChartDataProvider.GeneratePieChartTestData();

            return base.OnParametersSetAsync();
        }
    }
}