在一个图表上绘制大量数据visual studio

mkshixfv  于 2022-11-17  发布在  其他
关注(0)|答案(1)|浏览(144)

Immage of chart when program ran and bottom "GRAPH" is pressed
我怎样才能使数据不出现在图表的底部?

string path = @"c:\users\thebi\desktop\code\justins sample c# code\csv test (writing while open in matlab)\csv vs\csv test\bin\debug\outputfile.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++;
        }
vnjpjtjt

vnjpjtjt1#

虽然你的问题不清楚,我假设你想去掉X轴数据点的长标签,你可以试试;

chart1.ChartAreas[0].AxisX.LabelStyle.Enabled = false;

相关问题