Hey all,
Am having a slight problem when trying to use chartfx to plot an XY
chart against a dataset. When i do the code below, The graph gets
plotted fine, however, the X-Axis is full of odd values that I dont
know where it gets the from... normally starting at -1.xxxxxxxxxxxxx to
NaN. Also when hovering over the points, the point labels show:
<string value>
NaN
X:400 Y:1.2
all i want my graph to do is take that X value and put it on the
X-Axis.... it seems not to like me doing this!
dtFiltered is a table containing a number of rows in the format (x, y)
both of which are numerical values to be plotted against each other.
Any help would be most appreciated.
chtChart.DataSourceSettings.DataStyle =
SoftwareFX.ChartFX.DataStyle.ReadXValues
chtChart.DataSourceSettings.DataType(0) =
SoftwareFX.ChartFX.DataType.XValue
chtChart.DataSourceSettings.DataType(1) =
SoftwareFX.ChartFX.DataType.Value
chtChart.MarkerShape = SoftwareFX.ChartFX.MarkerShape.None
chtChart.DataSourceSettings.DataSource = dtFiltered
chtChart.SerLeg(0) = "Wavelength"
chtChart.SerLeg(1) = "%T"
'chtChart.RecalcScale()
chtChart.AxisX.Min = xmin
chtChart.AxisX.Max = xmax
chtChart.Refresh()