Patrick,
Thank you again. I had figured out that I could set the SymbolStyle.Color = Color.Transparent but setting the shape to none is much better.
In just playing around with the code to see if I can get the chart component to work I was creating my dataset programatically like so:
Dim dATAs As New DataSet
Dim dt As New DataTable
dt.TableName = "DATA"
dt.Columns.Add(New DataColumn("DT", GetType(System.DateTime)))
dt.Columns.Add(New DataColumn("TEMP", GetType(System.Double)))
dATAs.Tables.Add(dt)
Dim dr As DataRow
dr = dATAs.Tables("DATA").newrow
dr("DT") = "3/6/07 12:07 AM"
dr("TEMP") = "3.195"
dATAs.Tables("DATA").rows.add(dr)
dr = dATAs.Tables("DATA").newrow
dr("DT") = "3/6/07 12:10 AM"
dr("TEMP") = "3.221"
dATAs.Tables("DATA").rows.add(dr)
and so on and so forth... (2300 rows) Obviously I wouldn't do this in production use.
I found that when I added the Date data like I had it in the excel spreadsheet example on our ftp site (the first date value was 39147.0052083333) I was geting datatype mismatch errors from vb.net. To fix it I formated them as dates as in the example dataset above. The weird thing is that the chart component is returning 39145 instead of 3/6/2007 12:07 AM!
Here is my code as I (barely) modified it from your example:
Protected Sub setupchart()
Dim dv As New DataView(dATAs.Tables("DATA"))Dim dsc As C1.Win.C1Chart.ChartDataSeriesCollection = _
c1Chart.ChartGroups(0).ChartData.SeriesList
dsc.Clear()
Dim ds As C1.Win.C1Chart.ChartDataSeries = dsc.AddNewSeries()
ds.PointData.Length = dv.Count
'ds.Display = C1.Win.C1Chart.SeriesDisplayEnum.Hide
'ds.FitType = C1.Win.C1Chart.FitTypeEnum.Line
'ds.LineStyle.Pattern = C1.Win.C1Chart.LinePatternEnum.Solid
Dim i As IntegerFor i = 0 To dv.Table.Rows.Count - 1
ds.X(i) = dv(i)(0)
ds.Y(i) = dv(i)(1)
Next i
ds.SymbolStyle.Shape = C1.Win.C1Chart.SymbolShapeEnum.None
'ds.SymbolStyle.Color = Color.Transparentds.X.DataType = GetType(System.DateTime())
c1Chart.DataSource = dv
c1Chart.DataBind()
c1Chart.Width = 600
c1Chart.Height = 400
End Sub
Thanks for all the help!! The guys here at work are starting to love the idea of having this on our site reports!