相关疑难解决方法(0)

如何在OxyPlot图表上绘制MULTIPLE LineSeries?

我为问这么多OxyPlot问题而道歉,但我似乎真的在努力使用OxyPlot图表控件.

我的项目是WPF格式,所以我最初使用托管的WINFORMS图表,它就像一个魅力,并且做了我需要的所有内容,直到我需要在托管的winform图表上覆盖WPF元素.由于"AirSpace"问题,无论我做什么,我都无法看到我放在托管图表顶部的WPF元素.那时我决定选择OxyPlot,这给我带来了很多令人头痛的问题.

这是我的原始问题!我在CodePlex询问过.我似乎没有得到太多帮助,所以我在这里再试一次.

我的问题是:

有谁知道如何将多个LineSeries绘制到一个图上?

到目前为止我的方法:

我正在使用ac#List数组并添加一个包含要绘制的新数据的LineSeries的新副本.我的代码:

    // Function to plot data
    private void plotData(double numWeeks, double startingSS)
    {

        // Initialize new Salt Split class for acess to data variables
        Salt_Split_Builder calcSS = new Salt_Split_Builder();
        calcSS.compute(numWeeks, startingSS, maxDegSS);

        // Create the OxyPlot graph for Salt Split
        OxyPlot.Wpf.PlotView plot = new OxyPlot.Wpf.PlotView();

        var model = new PlotModel();

        // Add Chart Title
        model.Title = "Salt Split Degradation";

        // Create new Line Series
        LineSeries linePoints = new LineSeries() { StrokeThickness = …
Run Code Online (Sandbox Code Playgroud)

c# wpf charts lineseries oxyplot

9
推荐指数
2
解决办法
2万
查看次数

标签 统计

c# ×1

charts ×1

lineseries ×1

oxyplot ×1

wpf ×1