Vishaal
Vishaal

Reputation:

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

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

Upvotes: 4

Views: 5270

Answers (4)

TheMissionPossible
TheMissionPossible

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

Julien Chastang
Julien Chastang

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

BlackMael
BlackMael

Reputation: 3218

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

Upvotes: 4

Related Questions