How to Creat Charts with the Google Chart API in asp.net?
问题:
回答1:
Google is a good place to start...
Google Charts API as ASP.NET 2.0 Server Control
Google Chart Net
Or better yet use the new ASP.NET charting control
ASP.NET Charting Control
回答2:
Please refer the article on 4guysfromrolla
Creating charts with Google chart API with ASP.NET
ASP.NET Custom Server Control for Google chart
回答3:
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.
回答4:
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#