Reputation:
How to Creat Charts with the Google Chart API in asp.net?
Upvotes: 4
Views: 5270
Reputation: 7
It is not that hard, things to consider are 1. Build up your data table for chart and save it to Json format 2. Use jquery function getJson to retrieve it, then follow google API on how to Parse Json file, then there is the graph I built lots of graphs by using this method using C#
Upvotes: 1
Reputation: 17784
FYI there are plenty of Google Chart API wrapper APIs that will make your life easier in terms of dealing with low-level Google Chart API details. I wrote one the Java side (called charts4j). But there is also at least one wrapper API in the .NET arena.
I am not completely familiar with the ASP .Net stack, but you will probably want to generate the the Google Chart URL server side, and display that URL with your HTML view technology in an image tag. The alternative is to pass the data to the browser and construct the chart URL with javascript, but this is likely to be more tedious and error prone. Hope that helps.
Upvotes: 1
Reputation: 3218
Google is a good place to start...
Google Charts API as ASP.NET 2.0 Server Control
Or better yet use the new ASP.NET charting control
Upvotes: 4
Reputation: 8128
Please refer the article on 4guysfromrolla
Creating charts with Google chart API with ASP.NET
ASP.NET Custom Server Control for Google chart
Upvotes: 1