程序运行时图表的空白和底部"GRAPH";按下
如何使数据不显示在图表底部?
string path = @"c:usersthebidesktopcodejustins sample c# codecsv test (writing while open in matlab)csv vscsv testbindebugoutputfile.txt";
int time = 0;
string[] readText = File.ReadAllLines(path);
int sizeofarray;
sizeofarray = readText.Length;
for (int i = 0; i < sizeofarray; i++)
{
chart1.Series["Series1"].Points.AddXY(readText[i], time);
time++;
}
虽然你的问题不清楚,但我认为你想去掉X轴中数据点的长标签。你可以试试;
chart1.ChartAreas[0].AxisX.LabelStyle.Enabled = false;