0

I'm building some Microsoft charts on a .NET 2.0 application using System.Web.UI.DataVisualization.Charting.Chart similar to the code here http://blog.oscarscode.com/dot-net/create-charts-in-asp-net/ except using a database call to get data for charts and building the charts in the vb code file instead of the aspx page.

The charts sometime take a while to load. For this reason I want to build a blank chart for when the page loads and then make an ajax call on page load in JavaScript to a web method that will load the data. I've tried storing the chart data and accessing it in the web method, but the series property of the chart is undefined when I access it through the web method. Idx is the chart number; there can be multiple on a page.

<System.Web.Services.WebMethod()> _
    Public Shared Sub Load(ByVal idx As Integer)

Is there a way to load data for the chart from an ajax call, or is there a better way to do what I want? Thanks

t_m27
  • 103
  • 16

0 Answers0