Jump to content
Software FX Community

Runtime information


User (Legacy)

Recommended Posts

Hi,

Is it possible to determine the series count and number of points plotted in

the chart at runtime?

i.e At execution time is there some way to find:

1) The number of series currently plotted in the chart.

2) The number of points plotted in a particular series(series index is

provided as input).

Thanks & Regards,

Raj

Link to comment
Share on other sites

The NSeries and NValues properties will return the total number of series 

and points respectively.

Note that in ChartFX all series have the same number of points, if you want

to ignore the hidden points you will have to cache that number or loop

through the Data and count all non-hidden points.

Regards,

JC

Software FX Support.

"Raj" <rajendra.kamath@networkgeneral.com> wrote in message

news:UpT7X37oFHA.1724@webserver3.softwarefx.com...

> Hi,

>

> Is it possible to determine the series count and number of points plotted

> in the chart at runtime?

>

> i.e At execution time is there some way to find:

> 1) The number of series currently plotted in the chart.

> 2) The number of points plotted in a particular series(series index is

> provided as input).

>

> Thanks & Regards,

> Raj

>

Link to comment
Share on other sites

  • 1 month later...

Hi,

Thank-you! For your response!

Assuming that I would want to browse thru the data points how can I do it?

i.e I have 3 series plotted in my chart. As I get data for each series, I

add it to the end of the particular series in the chart. Is there some way

to retrieve the number of datapoints already plotted in a series?

chart.OpenData(COD.Values, chart.NSeries, chart.NValues);

chart.OpenData(COD.XValues, chart.NSeries, chart.NValues);

chart.Value[seriesIndex, dataIndex] = dataValue;

chart.XValue[seriesIndex, dataIndex] = timeInstant.ToOADate();

chart.CloseData(COD.XValues);

chart.CloseData(COD.AddPoints);

The above code does not work since at times a series may have different

number of points either more or less than chart.NValues. What can I do?

I tried using, listProvider.List and tried to get back the data but I was

not able to do that?

Thanks & Regards,

Rajendra

"Software FX Support" <none@noreply.com> wrote in message

news:3ASsFrEpFHA.1992@webserver3.softwarefx.com...

> The NSeries and NValues properties will return the total number of series

> and points respectively.

>

> Note that in ChartFX all series have the same number of points, if you

> want to ignore the hidden points you will have to cache that number or

> loop through the Data and count all non-hidden points.

>

> Regards,

>

> JC

> Software FX Support.

>

> "Raj" <rajendra.kamath@networkgeneral.com> wrote in message

> news:UpT7X37oFHA.1724@webserver3.softwarefx.com...

>> Hi,

>>

>> Is it possible to determine the series count and number of points plotted

>> in the chart at runtime?

>>

>> i.e At execution time is there some way to find:

>> 1) The number of series currently plotted in the chart.

>> 2) The number of points plotted in a particular series(series index is

>> provided as input).

>>

>> Thanks & Regards,

>> Raj

>>

>

>

Link to comment
Share on other sites

All series have the same number of points. The chart data looks like a table 

(you can see the data in this format by turning on the Data Editor).

You can add "hidden" points to the end of a series to achieve different

sizes, make a point hidden, you assign its value as follows:

chart.Value[seriesIndex, dataIndex] = Chart.Hidden;

As far as counting how many points are not hidden in each series, you will

have to keep this count in your own variables, these can be calculated as

you pass data to the chart.

--

Francisco Padron

www.chartfx.com

"Raj" <rajendra.kamath@networkgeneral.com> wrote in message

news:CVixBq2vFHA.1764@webserver3.softwarefx.com...

> Hi,

>

> Thank-you! For your response!

>

> Assuming that I would want to browse thru the data points how can I do it?

> i.e I have 3 series plotted in my chart. As I get data for each series, I

> add it to the end of the particular series in the chart. Is there some way

> to retrieve the number of datapoints already plotted in a series?

>

> chart.OpenData(COD.Values, chart.NSeries, chart.NValues);

>

> chart.OpenData(COD.XValues, chart.NSeries, chart.NValues);

>

> chart.Value[seriesIndex, dataIndex] = dataValue;

>

> chart.XValue[seriesIndex, dataIndex] = timeInstant.ToOADate();

>

> chart.CloseData(COD.XValues);

>

> chart.CloseData(COD.AddPoints);

>

> The above code does not work since at times a series may have different

> number of points either more or less than chart.NValues. What can I do?

>

> I tried using, listProvider.List and tried to get back the data but I was

> not able to do that?

>

> Thanks & Regards,

>

> Rajendra

>

> "Software FX Support" <none@noreply.com> wrote in message

> news:3ASsFrEpFHA.1992@webserver3.softwarefx.com...

>> The NSeries and NValues properties will return the total number of series

>> and points respectively.

>>

>> Note that in ChartFX all series have the same number of points, if you

>> want to ignore the hidden points you will have to cache that number or

>> loop through the Data and count all non-hidden points.

>>

>> Regards,

>>

>> JC

>> Software FX Support.

>>

>> "Raj" <rajendra.kamath@networkgeneral.com> wrote in message

>> news:UpT7X37oFHA.1724@webserver3.softwarefx.com...

>>> Hi,

>>>

>>> Is it possible to determine the series count and number of points

>>> plotted in the chart at runtime?

>>>

>>> i.e At execution time is there some way to find:

>>> 1) The number of series currently plotted in the chart.

>>> 2) The number of points plotted in a particular series(series index is

>>> provided as input).

>>>

>>> Thanks & Regards,

>>> Raj

>>>

>>

>>

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...