我正在開發一個 winform 應用程式來使用 LiveCharts 顯示折線圖。如何在某個 x 坐標處繪制一條垂直線?提前致謝。
uj5u.com熱心網友回復:
我發現:
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})
}
}
});
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/348004.html
