Jump to content
Software FX Community

ChartFX.Series.Count


User (Legacy)

Recommended Posts

Posted

I can't get a series count out of my chart object.  It always returns zero 

(0). Any help would be appreciated.

Thanks, Chris

Here is a portion of my code:

ct = New CrosstabDataProvider

ct.DataSource = dt

ct.DataType.Item(1) = CrosstabDataType.ColumnHeading

ct.DataType.Item(0) = CrosstabDataType.RowHeading

ct.DataType.Item(2) = CrosstabDataType.Value

Dim seriesCnt As Integer

With Chart1

.DataSource = ct

.DataSourceSettings.DataType.Item(1) = SoftwareFX.ChartFX.DataType.Label

.AxisX.SetScrollView(2, 4)

seriesCnt = .Series.Count

End With

Posted

Series.Count will return the number of series attributes you have which may 

not be the number of series in your data.

To obtain the number of series in your data do:

int seriesCount = chart1.NSeries;

--

Francisco Padron

www.chartfx.com

Archived

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

×
×
  • Create New...