Tag: boxplot

如何在WFA中向BoxPlot添加数据?

我正在手动创建一个箱线图。 我有4个double []数组,其中包含一些计算结果,我希望在图表上显示。 我不知道如何正确连接我的数组与图表系列。 这是我的图表: Chart chart = new Chart(); chart.Series.Add(“S1”); chart.Series.Add(“S2”); chart.Series.Add(“S3”); chart.Series.Add(“S4”); chart.ChartAreas.Add(“ChartArea1”); chart.ChartAreas[0].Visible = true; chart.ChartAreas[0].Position.Auto = true; chart.Series[0].ChartType = SeriesChartType.BoxPlot; chart.Series[1].ChartType = SeriesChartType.BoxPlot; chart.Series[2].ChartType = SeriesChartType.BoxPlot; chart.Series[3].ChartType = SeriesChartType.BoxPlot; chart.Parent = this; chart.Visible = true; double[] yValues = { 2, 3, 4, 5, 4, 5, 5, 2, 1, 9, 20, 4 […]