Bob Posted February 20, 2008 Report Share Posted February 20, 2008 Has any-one tried to put a Pie chart and a Bar chart on the same page and by clicking on a segment triggered the barchart to update in an asp.net update Panel. The Pie chart generates a client side image map that you can specify the URL for each point. It sounds like the kind of thing using these charts and Ajax should be able to do. Could I make each point.link.Url a call a javascript function with a paramter or 2 and 'trigger' the update panel that way? Any pointers hints tips crazy ideas how this might be possible ? Cheers Bob. Link to comment Share on other sites More sharing options...
AndreG Posted February 21, 2008 Report Share Posted February 21, 2008 I have prepared a sample for you. I believe it is what you are looking for. There are two charts on the page, a Pie and a Bar chart. The Bar chart is inside an UpdatePanel. On the Pie chart, I have linked every point to a JavaScript function. That function calls for a postback. The ASP.NET AJAX framework will intercept the postback and fire a partial postback instead. I hope it helps. Thank you, Andre G. Link to comment Share on other sites More sharing options...
Bob Posted February 21, 2008 Author Report Share Posted February 21, 2008 Thank you so much Andre ... your sample was gold to me .. saved me hours of drilling through blogs trying to piece all the relevant info together. Think I'll go have a long lunch now that this tool will get finished on time ;-) Cheers Bob. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.