Revisiting Charting with ASP.NET and LINQ

Monday, February 14, 2011

Once upon a time I wrote an article titled “Charting with ASP.NET and LINQ”. At the time I used a combination of WebForms, WCF, the Microsoft AJAX libraries, and the Microsoft chart control. I had some time to revisit the topic recently and rewrote the sample application using ASP.NET MVC and jQuery. You can download the sample here.

The idea behind the sample is to present a “dashboard” full of charts. I’ve worked on a few dashboards over the years, and they are always notoriously difficult to optimize without aggressive caching and asynchrony. In this sample the view drops placeholder images with enough information for JavaScript to come along and request each chart asynchronously. The result is a page that loads quickly and then fills with information over time.

There are a few interesting pieces to compare and contrast in the sample. We’ll look at them over the coming days.


Comments
P Monday, February 14, 2011
I think the csproj for the MVC project is busted. Its referencing 4 files that dont exist. It looks like you might have renamed files on disk but not updated the csproj link?

To work around this, delete the 4 dead file file links in the Models folder and import the other 4 files that are on disk, but are not in the project.
gravatar scott Tuesday, February 15, 2011
@P: Sorry - not sure what happened to the .zip. Should be working now, and thanks for letting me know.
Comments are now closed.
by K. Scott Allen K.Scott Allen
My Pluralsight Courses
The Podcast!