WinForms/FinancialSeries/DataProviderPoint.cs

(完整代码) 1007B

using System;
using LiveCharts;
using LiveCharts.Configurations;

namespace Geared.Winforms.FinancialSeries
{
    public class DataProviderPoint
    {
        static DataProviderPoint()
        {
            //lets configure our charts to plot DataProviderPoint
            //a global mapper should only be set once.
            //thus we are using the static constructor of DataProviderPoint

            //lets define a mapper
            var mapper = Mappers.Financial<DataProviderPoint>()
                .Open(x => x.Open)
                .High(x => x.High)
                .Low(x => x.Low)
                .Close(x => x.Close);

            //lets save the mapper globally, for more info please see:
            //
            Charting.For<DataProviderPoint>(mapper);
        }

        public double Open { get; set; }
        public double High { get; set; }
        public double Low { get; set; }
        public double Close { get; set; }
        public DateTime DateTime { get; set; }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。