locked
copying series from one chart object to another chart object RRS feed

  • Question

  • Hello.  I have two chart objects (not chart areas on one chart but two separate charts).  I'd like to copy a series from one chart object to the 2nd chart object.  It seems that the DataManipulator.CopySeriesValues method will only work within the same chart object, not across two chart objects. Any ideas?
    Monday, February 22, 2010 6:24 PM

Answers

  • How about looping through the series and copying the data..

    	For Each dp As DataPoint In Chart1.Series(0).Points
    		Chart2.Series(0).Points.Add(dp.Clone)
    	Next
    Tuesday, February 23, 2010 11:51 AM
    Moderator