ehlaban Posted October 11, 2007 Report Share Posted October 11, 2007 From other posts i understand that it's not so easy to remove a serie from a collection of series. What i learned is that with chart.OpenData(COD.Values, chart.NSeries-1,0);chart.CloseData(COD.Values); You can remove the last series. Question1: with VS 2005 and VB.Net chart1.Opendata is not recognised as a function how do i call OpenData? In Chart FX 7 (for VS 2005) you can re-order series which allows you to remove any series by sending it to the last position first, this is not possible in Chart FX 6.2. Question2: What is the function to send a serie to the last position? Ernesto Quote Link to comment Share on other sites More sharing options...
Guest admin Posted October 11, 2007 Report Share Posted October 11, 2007 chart.Series.SendToBack(); Quote Link to comment Share on other sites More sharing options...
ehlaban Posted October 11, 2007 Author Report Share Posted October 11, 2007 yes thanks. I still can't find the chart.OpenData function anywhere in chartfx 7 for winforms, not in the examples and not in the documentation. Perhaps it's there but i can't find it. Ernesto Quote Link to comment Share on other sites More sharing options...
Frank Posted October 11, 2007 Report Share Posted October 11, 2007 There is no OpenData method in Chart FX for VS 2005. You may be looking from the Chart FX 6 docs. Quote Link to comment Share on other sites More sharing options...
ehlaban Posted October 12, 2007 Author Report Share Posted October 12, 2007 Right, Now how do i remove a series in Chart FX for VS 2005 then? Ernesto Quote Link to comment Share on other sites More sharing options...
Frank Posted October 12, 2007 Report Share Posted October 12, 2007 For example, to remove the second series: chart1.Series[1].SendToBack(); chart1.UpdateSizeNow(); // Commit previous change. Very important!chart1.Data.Series--; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.