@using ApexCharts @using UI_SequentMicrosystems.Components @using UI_SequentMicrosystems.Services @using UI_SequentMicrosystems.Models @inject RTD8TMService _RTD8TMService @foreach (byte stack in _RTD8TMService.GetActualData().Keys) { for (byte chanel = 0; chanel < 8; chanel++) { if (_RTD8TMService.GetChanelName(stack, chanel) != "----------") { } } } @code { private ApexChart chart; private ApexChartOptions chartOptions; protected override void OnInitialized() { _RTD8TMService.EventUpdateGraph += UpdateChart; chartOptions = new ApexChartOptions { Theme = new Theme { Mode = Mode.Dark, }, Legend = new Legend { Position = LegendPosition.Bottom, FontSize = "20px", HorizontalAlign = Align.Center } }; } public async Task UpdateChart(object? o, bool b) { await InvokeAsync(() => { chart.UpdateSeriesAsync(false); StateHasChanged(); }); } }