User (Legacy) Posted June 8, 2005 Report Posted June 8, 2005 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
Software FX Posted June 9, 2005 Report Posted June 9, 2005 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.