dotnetcharting 的线图如何让X轴显示自定义数据
case "线图":
{
this.Chart.Title = "统计结果线图"; // Set the title.
this.Chart.Type = ChartType.Scatter; // Set the chart Type
this.Chart.Use3D = false; // Turn 3D off.
this.Chart.DefaultSeries.Type = SeriesType.Line; // Set default series type
this.Chart.DefaultSeries.DefaultElement.Transparency = 20; // Set a default transparency
this.Chart.XAxis.Label.Text = "设备类型"; // Set the x axis label
this.Chart.YAxis.Label.Text = "故障个数"; // Set the y axis label
this.Chart.TempDirectory = "../Source/TempImags"; // Set the directory where the images will be stored.
this.Chart.Width = 600; // Set the chart size.
this.Chart.Height = 350;