C#/Excel: Working Around Maximum Series Size On Chart

后端 未结 3 1441
没有蜡笔的小新
没有蜡笔的小新 2020-12-31 17:31

I need help programatically graphing more points than can fit in a single Excel series.

According to http://office.microsoft.com/en-us/excel/HP100738491033.aspx the

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-31 17:51

    Does your graph actually have to be in Excel? With that many data points the performance would be horrible.

    One suggestion might be to use a third party component to generate the graph. The specific technique for how to accomplish this depends on whether you have to be able to view the data in excel or whether the output graph simply needs to be available elsewhere.

    If the graph does not need to be visible within Excel, then just pass the data points and view the image in the graphing application or a web browser.

    If you do need to view the graph with excel, you could make a call to the external graphing application and pass it a collection of data points. When it returns the image just insert it in excel with vba.

    I can give you more info on both approaches if you need.

    Also, other considerations might include whether you need to have drill down capability on the graph. With this many data points, I can not imagine that you would.


    If you can answer the following questions, it might help folks formulate better answers.

    1. What sort of user interface will be presenting the output of these items? (e.g. Excel, ASP.NET Web Application, Windows Forms, WPF, Silverlight, other.)

    2. Are these graphs supposed to be generated in real time at a user's request or are they generated and stored? If they are generated on demand, what is the maximum amount of time your users would consider acceptable to wait?

    3. How important is it that you actually use Excel? Are you using it because it is a requirement for display, or is that just what is handy?

    4. How important is the "Wow factor" for the display of the graphs? Is simply having the graphs, or do they have to be extremely beautiful?

    5. Do users require any ability to drill down into the graph, or is simply being able to view the image sufficient?

提交回复
热议问题