Hi
I have a list of dataview as the datasource of the chart.
this is my code
'bind data to the chart
Dim arrCollumns As String() = {"Value", "DateTime"} 'first column is number the second is datetime.
' disable automatic labels
chart.Axis(StandardAxis.PrimaryX).ScaleMode = AxisScaleMode.DateTime
chart.Axis(StandardAxis.PrimaryX).ValueFormatting.Format = ValueFormat.Date
chart.Axis(StandardAxis.PrimaryX).StaggerTexts = True
For
i
As Integer = 0
To List.Count - 1
Dim dv
As DataView = List.Item(i).View
Dim line
As LineSeries =
CType(chart.Series.Add(SeriesType.Line), LineSeries)
Dim arrSeries
As New DataSeriesCollection
arrSeries.Add(line.Values)
arrSeries.Add(line.Labels)
arrSeries.FillFromDataView(dv, arrCollumns)
Next
Chrt.Refresh()
The chart display correctly
1.on the Axis I saw dates from 1899 to 1900 if I disable the automin\automax and set the DateTimeScale.Max\Min the chart is disappear.
2.Is there any way to give each line in the chart a different color automatically without set the LineBorder.Color property.
3.In the mouse down event I can know the X,Y how can I know the data values in this location.
10x Nadav