We have Data Mart DB with performance data which we need to show in a SharePoint application. The data will change only once a day. We need to show a lot of graphs as part of the data. We have kind of 开发者_如何学JAVAdecided to use Dundas. But we are planning to explore other charting solutions that I'd like to know from the group.
What is the best way to generate the graphs? (Do we need to build any Data Layer in .Net to generate graphs and store them?) Data will not change throughout the daytime.
Where can we store the graphs - in SharePoint or the file system? What is the best approach?
Performance is our main criteria, since it is going to be a public facing site.
Look at the open source project ChartPart for SharePoint. This contains code to generate nice graphs from SharePoint lists. I think the best solution is to combine this with Dan's idea of writing a timer job. The timer job can store data in the SharePoint lists for ChartPart to use as source data.
The ChartPart uses the Microsoft Chart Controls for Microsoft .NET Framework 3.5 so you would need to install this as well as .NET 3.5 on your servers. This is a simple install and nothing to be concerned about.
As for generating the graphs I can't really advise. But for optimum performance in doing so you'll want to generate the graphs overnight when I'm assuming the server load will be minimal. I would probably go about creating a timer job that does the neccessary graph generation either natively or by calling out to something else. You would then end up with your graphs and you can programmatically add them to a hidden list somewhere. From here the graph content can be accessed throughout the day in your pages, webparts ect.
精彩评论