473,405 Members | 2,141 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,405 software developers and data experts.

ChartFX Slowness

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 plotting the points it
slows down immensely. If i Alt-Tab to another full screen application
and then Alt-Tab back a few seconds later, the graph has redrawn a lot
more of it that it would have had it been on the screen all the time.

This leads me to believe that it is due to the graph refreshing every
point whenever a new one is added. At my calculations that would mean
in total, the number of points actually plotted for a 10,000 point
graph is around 42 million! 10000 + 9999 + 9998 + ... etc.

Is there anyway around this so that the graph will only draw on the
last point added? The code snippet i am using is below:

For i As Integer = 0 To 10000 - 1

chtChart.OpenData(SoftwareFX.ChartFX.COD.XValues Or
SoftwareFX.ChartFX.COD.AllocHidden, SeriesCount, 10000)

chtChart.OpenData(SoftwareFX.ChartFX.COD.Values Or
SoftwareFX.ChartFX.COD.AllocHidden, SeriesCount, 10000)

'plot the point
chtChart.Value(SeriesCount - 1, i) = y
chtChart.XValue(SeriesCount - 1, i) = x
chtChart.Series(SeriesCount - 1).Tag = sp.scan.sampleName

Dim str As String = ""
str = "x: " & x.ToString("N1") & vbCrLf
str += "y: " + y.ToString("N3")

chtChart.Point(SeriesCount - 1, i).Tag = str

'Close the chart control for data
chtChart.CloseData(SoftwareFX.ChartFX.COD.Values)
chtChart.CloseData(SoftwareFX.ChartFX.COD.XValues)
Next

Jun 6 '06 #1
1 1994
Check the programmer's guide under "Real Time Charts", there is API
there that will help you improve the prformance of this chart, among
the things you cna do is to "add" one point to the chart and refresh
only the new point.

Dave wrote:
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 plotting the points it
slows down immensely. If i Alt-Tab to another full screen application
and then Alt-Tab back a few seconds later, the graph has redrawn a lot
more of it that it would have had it been on the screen all the time.

This leads me to believe that it is due to the graph refreshing every
point whenever a new one is added. At my calculations that would mean
in total, the number of points actually plotted for a 10,000 point
graph is around 42 million! 10000 + 9999 + 9998 + ... etc.

Is there anyway around this so that the graph will only draw on the
last point added? The code snippet i am using is below:

For i As Integer = 0 To 10000 - 1

chtChart.OpenData(SoftwareFX.ChartFX.COD.XValues Or
SoftwareFX.ChartFX.COD.AllocHidden, SeriesCount, 10000)

chtChart.OpenData(SoftwareFX.ChartFX.COD.Values Or
SoftwareFX.ChartFX.COD.AllocHidden, SeriesCount, 10000)

'plot the point
chtChart.Value(SeriesCount - 1, i) = y
chtChart.XValue(SeriesCount - 1, i) = x
chtChart.Series(SeriesCount - 1).Tag = sp.scan.sampleName

Dim str As String = ""
str = "x: " & x.ToString("N1") & vbCrLf
str += "y: " + y.ToString("N3")

chtChart.Point(SeriesCount - 1, i).Tag = str

'Close the chart control for data
chtChart.CloseData(SoftwareFX.ChartFX.COD.Values)
chtChart.CloseData(SoftwareFX.ChartFX.COD.XValues)
Next


Jun 8 '06 #2

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

Similar topics

0
by: Nicole | last post by:
Has anyone else experienced a dramatic slow down of performance with their ADP's after upgrading to Service Pack 2 or above? The slowness occurs exclusively when pulling data from SQL Server in...
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...
0
by: Dave | last post by:
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...
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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.