473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ChartFx DataSource Problems

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
0 2290

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Weichsi | last post by:
Did anyone ever use texts in ChartFX that contain chars like '+' or '-' as axis labels. If i set the text for a label (e.g. 'KK 1+') i get '+ KK 1' printed in the chart. It doesn't help to use...
4
by: Dave Sauny | last post by:
I'm creating graphs which have data between 300 and 400 on the x-axis and also 900 and 1000 on the x-axis. When this gets plotted, the graph rescales and the information becomes to small to be of...
1
by: Dave Sauny | last post by:
I have a chart drawn in chartfx with multiple series on the same graph. However, the X and Y values have different title, ie basing the data on 3 columns Col1 Col2 Col3 I want each...
1
by: Dave | last post by:
Hi all, Ok basically what I am trying to do is this: I have a line graph with multple series what i want the user to be able to do is click and highlight an area of the graph in order to apply...
0
by: cprestino | last post by:
I am creating a graph in ChartFX using .net. I have the graphs working correctly when it is defined as an image. However when I change this graph to use Flashwriter, The graph is outputted as a...
1
by: Dave | last post by:
Hi all, I have a slight problem when using chartfx in vb.net. I have a line graph that needs to be able to plot 10,000 points. I believe that this isn't too unfeasible however whenever I begin...
0
by: DaTurk | last post by:
Hi, I don't even know if many people use this product, but bless you if you do and know what I'm talking about. We recently upgraded ChartFX to 7.0, and are having some difficulties with the...
6
by: Dan Reber | last post by:
I am about to purchase a chart control for my application but I am not sure which one to go with. Does anyone have any pros/cons for either component? I have already tried both and they seem very...
0
by: shahiz | last post by:
This the error i get when i try to run my program Error: Unable to realize com.sun.media.amovie.AMController@18b81e3 Basically i have a mediapanel class that initialize and play the media as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.