C# 使用Oxyplot Visual studio C的线图#
我正在努力获得一个简单的线图作为输出。Oxyplot的所有工具不在我的工具栏中C# 使用Oxyplot Visual studio C的线图#,c#,oxyplot,C#,Oxyplot,我正在努力获得一个简单的线图作为输出。Oxyplot的所有工具不在我的工具栏中 InitializeComponent(); PlotModel model = new PlotModel(); OxyPlot.WindowsForms.PlotView plot1 = new OxyPlot.WindowsForms.PlotView(); var lineSeries = new LineSeries(); lineSeries.Points.Add(new DataPoint
InitializeComponent();
PlotModel model = new PlotModel();
OxyPlot.WindowsForms.PlotView plot1 = new OxyPlot.WindowsForms.PlotView();
var lineSeries = new LineSeries();
lineSeries.Points.Add(new DataPoint(0, 0))
lineSeries.Points.Add(new DataPoint(10, 4));
lineSeries.Points.Add(new DataPoint(30, 2));
lineSeries.Points.Add(new DataPoint(40, 12));
model.Series.Add(lineSeries);
如何在Visual Studio的工具栏中使用Oxyplot命令?如果使用WPF:
如果要在设计视图中添加打印控件,请按选择项。。。在工具箱中,浏览OxyPlot.Wpf.dll文件。如果使用NuGet,它应该位于解决方案文件夹中的packages文件夹中
遇到同样的问题并最终找到了解决方案(针对WPF):
(可能同样适用于WinForms)
您现在应该看到大约三十多个OxyPlot控件 答案为我指明了正确的方向 干杯,
Al请澄清您的问题。我在visual Studio的工具箱中找不到任何oxyplot组件。这是WPF吗?什么平台?域已死亡,链接将指向错误内容,请修复或删除。