Jump to content
Software FX Community

Access specific points in a series


User (Legacy)

Recommended Posts

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

post-2107-1392238089077_thumb.jpg

Link to comment
Share on other sites

> 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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...