WinForms/StackedSeries/LecturePoint.cs
(完整代码) 845Busing System;
using LiveCharts;
using LiveCharts.Configurations;
namespace Geared.Winforms.StackedSeries
{
public class LecturePoint
{
public LecturePoint()
{
}
public LecturePoint(TimeSpan timeSpan, double value)
{
TimeSpan = timeSpan;
Value = value;
}
public TimeSpan TimeSpan { get; set; }
public double Value { get; set; }
public static void RegisterInLiveCharts()
{
//here we are teaching LiveCharts how to plot LecturePoint class
//you can find more information here:
//
var mapper = Mappers.Xy<LecturePoint>()
.X(point => point.TimeSpan.Ticks)
.Y(point => point.Value);
Charting.For<LecturePoint>(mapper);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
