How Create Charts with the Google Chart API in asp

2019-06-28 06:51发布

How to Creat Charts with the Google Chart API in asp.net?

标签: charts
4条回答
疯言疯语
2楼-- · 2019-06-28 07:27

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

查看更多
霸刀☆藐视天下
4楼-- · 2019-06-28 07:37

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#

查看更多
男人必须洒脱
5楼-- · 2019-06-28 07:42

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.

查看更多
登录 后发表回答