User (Legacy) Posted October 18, 2005 Report Share Posted October 18, 2005 Hi, I am converting a colleague's code (C#) which was written for the previous ChartFX release. In his code the X & Y values for a specific point in a series could be accessed as in the following: MyObject.MySeries.Element.YValue = MyObject.SubObject.MySeries.Elements[I].YValue I can't figure out an easy way to do this with the current release. That is if your graph has 2 series, the first has 10 points and the second only 5 points. How would you access the first, non-null point in the second series if you have no idea where it starts? Secondly, on a more architectural note, I don't quite see where SoftwareFX is going with the current release. Visually it is great, but it lacks some of the flexibility of the previous release. We use an array list of objects to contain graphs (series) that a user can add/remove from a simple graph. Previously we could create an object, containing a definition for a moving average curve, for example. This object would contain a series object which would appear on the graph when the user selected to add a moving average and when the user removed the MA, the object, along with the series, could be destroyed. Now we don't have a series object, we have to use the series index (a step backwards in my opinion) and when series are added or removed the indices within our objects all have to be incremented or decremented. I hope SFX can shed some light on this, am I just missing something? James Link to comment Share on other sites More sharing options...
Software FX Posted October 18, 2005 Report Share Posted October 18, 2005 > In his code the X & Y values for a specific point in a series could be > accessed as in the following: ..... All series have the SAME amount of points. This is true for all versions of Chart FX (as of today). You can pad "shorter" series by setting Chart>hidden to the values at the end of it. To access the data you do: chart.Values[<series index>,<point index>] and chart.XValues[<series index>,<point index>] > Secondly, on a more architectural note, I don't quite see where SoftwareFX > is going with the current release. Visually it is great, but it lacks > some of the flexibility of the previous release ... > Now we don't have a series object ... I don't understand what you mean by this, there is a Series object, maybe you can post some code of how you did this is previous versions. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 19, 2005 Author Report Share Posted October 19, 2005 Sorry about this, I had a bit of 'version confusion'. The previous software was not ChartFX. "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:z$pKRE$0FHA.3504@webserver3.softwarefx.com... >> In his code the X & Y values for a specific point in a series could be >> accessed as in the following: ..... > > All series have the SAME amount of points. This is true for all versions > of Chart FX (as of today). > > You can pad "shorter" series by setting Chart>hidden to the values at the > end of it. > > To access the data you do: > > chart.Values[<series index>,<point index>] > > and > > chart.XValues[<series index>,<point index>] > >> Secondly, on a more architectural note, I don't quite see where >> SoftwareFX is going with the current release. Visually it is great, but >> it lacks some of the flexibility of the previous release ... >> Now we don't have a series object ... > > I don't understand what you mean by this, there is a Series object, maybe > you can post some code of how you did this is previous versions. > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.