By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

ChartFx DataSource Problems

P: n/a
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()

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.