Wpf/Scatter/CustomScatterPoint.cs
(完整代码) 965Busing LiveCharts;
using LiveCharts.Configurations;
namespace Geared.Wpf.Scatter
{
public class CustomScatterPoint
{
static CustomScatterPoint()
{
//in this case we are using a custom type
//just to have more control
//here I am not implementing IObservableChartPoint
//to gain some performance
//finally we teach LiveCharts to plot this type
//you can find more information about this step here:
//
var mapper = Mappers.Xy<CustomScatterPoint>()
.X(point => point.X)
.Y(point => point.Y);
Charting.For<CustomScatterPoint>(mapper);
}
public CustomScatterPoint()
{
}
public CustomScatterPoint(double x, double y)
{
X = x;
Y = y;
}
public double X { get; set; }
public double Y { get; set; }
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
