コード例 #1
0
ファイル: ChartComponent.cs プロジェクト: bhrnjica/daany
        public static ScatterSeries ScatterSeries(List<object> x, double[] y, System.Drawing.Color markerColor, MarkerType mType)
        {
            var scatterSeries = new ScatterSeries();
           // var scatterSeries = new List<DataPoint>();

            for (int i = 0; i < x.Count; i++)
            {
                var b = new ScatterPoint(CategoryAxis.ToDouble(x[i]), y[i]);
                scatterSeries.Points.Add(b);
            }
            scatterSeries.MarkerFill = OxyColor.FromRgb(markerColor.R, markerColor.G, markerColor.B);
            scatterSeries.MarkerType = mType;
            return scatterSeries;
        }