using LiveChartsCore.SkiaSharpView; using LiveChartsCore; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using CommunityToolkit.Mvvm.ComponentModel; using LiveChartsCore.Kernel.Sketches; using LiveChartsCore.SkiaSharpView.Painting; using ScottPlot.Colormaps; using System.Drawing; using System.Windows.Media.TextFormatting; using System.Xml.Linq; using SkiaSharp; using LiveChartsCore.Defaults; using static System.Net.WebRequestMethods; using System.Collections.ObjectModel; using DyeingComputer.Properties; using LiveChartsCore.Measure; using LiveChartsCore.Motion; using SunlightCentralizedControlManagement_SCCM_.Properties; using static SunlightCentralizedControlManagement_SCCM_.UserClass.SqliteHelper; using TouchSocket.Core; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows; using SunlightCentralizedControlManagement_SCCM_.View; namespace SunlightCentralizedControlManagement_SCCM_.ViewModel { public partial class ProductionPlanningModel : ObservableObject//ViewModelBase { public ISeries[] Series { get; set; } public Axis[] XAxes { get; set; } = { new DateTimeAxis(TimeSpan.FromSeconds(5) , date => date.ToString("yyyy-MM-dd HH:mm")) { CrosshairLabelsBackground = SKColors.DarkGray.AsLvcColor(), CrosshairLabelsPaint = new SolidColorPaint(SKColors.DarkSlateBlue, 1), CrosshairPaint = new SolidColorPaint(SKColors.DarkSlateGray, 1), }, }; public ProductionPlanningModel() { Series = new ISeries[] { new RowSeries { Values = new List { 3 }, Stroke = null, DataLabelsPaint = new SolidColorPaint(new SKColor(45, 45, 45)), DataLabelsSize = 14, DataLabelsPosition = DataLabelsPosition.Middle }, new RowSeries { Values = new List { 4}, Stroke = null, DataLabelsPaint = new SolidColorPaint(new SKColor(45, 45, 45)), DataLabelsSize = 14, DataLabelsPosition = DataLabelsPosition.Middle }, new RowSeries { Values = new List { -2 }, Stroke = null, DataLabelsPaint = new SolidColorPaint(new SKColor(45, 45, 45)), DataLabelsSize = 14, DataLabelsPosition = DataLabelsPosition.Middle } }; } } }