BryanHood Posted July 16, 2007 Report Share Posted July 16, 2007 I have created four "thumbnail" charts on my webpage. I would like to have the user click on these fully-functional thumbnail charts, and have my web page display a full sized version on the screen. Currently, for testing, I have tried the following in my Page_Load function: this.fxMainGraph = fxDailyValue; fxMainGraph is the "full-size" graph that I want, and fxDailyValue is my thumbnail. This doesn't seem to make my "main chart" the same as the thumbnail. Link to comment Share on other sites More sharing options...
Frank Posted July 17, 2007 Report Share Posted July 17, 2007 You can use Export and Import to copy the contents of one chart to another. For example: MemoryStream ms = new MemoryStream(); chartSource.Export(ms); ms.Position = 0; // Reewind chartDest.Import(ms); Link to comment Share on other sites More sharing options...
BryanHood Posted July 17, 2007 Author Report Share Posted July 17, 2007 That works great! Thanks! However, I have made the toolbar and X-Axis labels invisible in my "thumbnails", and after I import them into my "full-size" chart, I can't get them back. Should I make them visible before I copy the control? Thanks again, Bryan Link to comment Share on other sites More sharing options...
Frank Posted July 17, 2007 Report Share Posted July 17, 2007 You have to make them visible AFTER you do the Import. The Import will override ANY settings you have in the Destination Chart. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.