使用 LiveCharts 在折线图中绘制垂直线
Draw vertical line in a line chart with LiveCharts
我正在开发一个 winform 应用程序以使用 LiveCharts 显示折线图。如何在某个 x 坐标处绘制垂直线?提前致谢。
我发现:
cartesianChart.AxisX.Add(new Axis
{
//IsMerged = true,
Sections = new SectionsCollection
{
new AxisSection
{
Value = x_best,
Stroke = System.Windows.Media.Brushes.Red,
StrokeThickness = 3,
StrokeDashArray = new System.Windows.Media.DoubleCollection(new [] {10d})
}
}
});
我正在开发一个 winform 应用程序以使用 LiveCharts 显示折线图。如何在某个 x 坐标处绘制垂直线?提前致谢。
我发现:
cartesianChart.AxisX.Add(new Axis
{
//IsMerged = true,
Sections = new SectionsCollection
{
new AxisSection
{
Value = x_best,
Stroke = System.Windows.Media.Brushes.Red,
StrokeThickness = 3,
StrokeDashArray = new System.Windows.Media.DoubleCollection(new [] {10d})
}
}
});