-2

I wanted to know whether a X,Y graph can be plotted from C#'s console application? If so, can anyone please help me out. I am very very new to C# and I am trying to work on a tool which can useful for my group. I want to build a line graph with the following options: 1. from an excel file containing X and Y values with headers 2. random numbers with random headers

and save the chart as either a Bitmap/jpeg file.

I'd really be thankful to whosoever tries and guides me in the right direction and helps me out.

4

1 回答 1

1

这个怎么样?http://www.codeproject.com/Articles/6708/Creating-Line-Chart-For-WebForms-Using-C

要从 excel 文件中获取 x 和 y,只需将其设置为具有 streamreader 和 openfiledialog 并过滤掉“,”或其他任何内容,然后 x 和 y 都将位于 [0] 之类的数组中,[1] 然后只使用 [0] 作为 x 和 [1] 作为 y。

于 2012-05-18T21:46:00.567 回答