472,359 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

MSGraph.Chart.8 data point limit

I'm trying to use a scatter chart to plot level reading for a pump
station level sensor.

The sensor takes a reading every 4 seconds, and there are 23,000
reading per chart

There appears to be a limit of 4000*4000 data points in MS Chart so I
have had a play with the Office 10 activX chart control, but cant get
that to plot the data at all. It always try to summaries the data for
some reason fathomable only to Bill Gates! Mind you, the MS Graph
wizard does the same, but at least I can work around this wizard, but
with the active X one I cant seem to specify X and Y data sets without
them being summarised.

So how can I reduse my dataset down to less than 4000 records to use
the MS Graph object.

Here is a sample of the data

DateTime Level1
07/09/07 13:22:06 2.96
07/09/07 13:22:10 2.98
07/09/07 13:22:14 2.98
07/09/07 13:22:18 2.96
07/09/07 13:22:22 2.96
07/09/07 13:22:26 2.96
07/09/07 13:22:30 2.98
07/09/07 13:22:34 2.96
07/09/07 13:22:38 2.98
07/09/07 13:22:42 2.96
07/09/07 13:22:46 2.96
07/09/07 13:22:50 2.96
07/09/07 13:22:54 2.98
07/09/07 13:22:58 2.98
07/09/07 13:23:02 2.98
07/09/07 13:23:06 2.98
07/09/07 13:23:10 2.98
07/09/07 13:23:14 3
07/09/07 13:23:18 3
07/09/07 13:23:22 2.98
07/09/07 13:23:26 2.98
07/09/07 13:23:30 2.98
07/09/07 13:23:34 2.98
07/09/07 13:23:38 3
07/09/07 13:23:42 2.98
07/09/07 13:23:46 3
07/09/07 13:23:50 2.98
07/09/07 13:23:54 3
07/09/07 13:23:58 2.98
07/09/07 13:24:02 3
07/09/07 13:24:06 3
07/09/07 13:24:10 2.98
07/09/07 13:24:14 3
07/09/07 13:24:18 3
07/09/07 13:24:22 2.98
07/09/07 13:24:26 3
07/09/07 13:24:30 3
07/09/07 13:24:34 2.98
07/09/07 13:24:38 3
07/09/07 13:24:42 3
07/09/07 13:24:46 2.98
07/09/07 13:24:50 2.98
07/09/07 13:24:54 2.98
07/09/07 13:24:58 3
07/09/07 13:25:02 3
07/09/07 13:25:06 2.98
07/09/07 13:25:10 3
07/09/07 13:25:14 2.98
07/09/07 13:25:18 3
07/09/07 13:25:22 3
07/09/07 13:25:26 3.02
07/09/07 13:25:30 3
07/09/07 13:25:34 3
07/09/07 13:25:38 3.02
07/09/07 13:25:42 3.02
07/09/07 13:25:46 3
07/09/07 13:25:50 3.02
07/09/07 13:25:54 3.02
07/09/07 13:25:58 3.02
07/09/07 13:26:02 3.02
07/09/07 13:26:06 3
07/09/07 13:26:10 3.05
07/09/07 13:26:14 3.05
07/09/07 13:26:18 3.02
07/09/07 13:26:22 3
07/09/07 13:26:26 3.05
07/09/07 13:26:30 3.05
07/09/07 13:26:34 3.02
07/09/07 13:26:38 3.02
07/09/07 13:26:42 3
07/09/07 13:26:46 3.02
07/09/07 13:26:50 3.05
07/09/07 13:26:54 3.05
07/09/07 13:26:58 3.02
07/09/07 13:27:02 3.05
07/09/07 13:27:06 3.02
07/09/07 13:27:10 3.02
07/09/07 13:27:14 3.05
07/09/07 13:27:18 3.05
07/09/07 13:27:22 3.05
07/09/07 13:27:26 3.05
07/09/07 13:27:30 3.02
07/09/07 13:27:34 3.02
07/09/07 13:27:38 3.05
07/09/07 13:27:42 3.05
07/09/07 13:27:46 3.05
07/09/07 13:27:50 3.05
07/09/07 13:27:54 3.05
07/09/07 13:27:58 3.02
07/09/07 13:28:02 3.05
07/09/07 13:28:06 3.02
07/09/07 13:28:10 3.05
07/09/07 13:28:14 3.05
07/09/07 13:28:18 3.07
07/09/07 13:28:22 3.07
07/09/07 13:28:26 3.09
07/09/07 13:28:30 3.12
07/09/07 13:28:34 3.14
07/09/07 13:28:38 3.14
07/09/07 13:28:42 3.16
07/09/07 13:28:46 3.19
07/09/07 13:28:50 3.21
07/09/07 13:28:54 3.21
07/09/07 13:28:58 3.28
07/09/07 13:29:02 3.3
07/09/07 13:29:06 3.3
07/09/07 13:29:10 3.33
07/09/07 13:29:14 3.35
07/09/07 13:29:18 3.33
07/09/07 13:29:22 3.39
07/09/07 13:29:26 3.42
07/09/07 13:29:30 3.42
07/09/07 13:29:34 3.46
07/09/07 13:29:38 3.46
07/09/07 13:29:42 3.49
07/09/07 13:29:46 3.49
07/09/07 13:29:50 3.51 high point
07/09/07 13:29:54 3.51 high point
07/09/07 13:29:58 3.51 high point
07/09/07 13:30:02 3.49
07/09/07 13:30:06 3.51
07/09/07 13:30:10 3.49
07/09/07 13:30:14 3.46
07/09/07 13:30:18 3.46
07/09/07 13:30:22 3.46
07/09/07 13:30:26 3.44
07/09/07 13:30:30 3.44
07/09/07 13:30:34 3.46
07/09/07 13:30:38 3.44
07/09/07 13:30:42 3.44
07/09/07 13:30:46 3.44
07/09/07 13:30:50 3.44
07/09/07 13:30:54 3.42
07/09/07 13:30:58 3.39
07/09/07 13:31:02 3.42
07/09/07 13:31:06 3.42
07/09/07 13:31:10 3.37
07/09/07 13:31:14 3.37
07/09/07 13:31:18 3.37
07/09/07 13:31:22 3.35
07/09/07 13:31:26 3.33
07/09/07 13:31:30 3.35
07/09/07 13:31:34 3.35
07/09/07 13:31:38 3.33
07/09/07 13:31:42 3.3
07/09/07 13:31:46 3.25
07/09/07 13:31:50 3.25
07/09/07 13:31:54 3.23
07/09/07 13:31:58 3.23
07/09/07 13:32:02 3.23
07/09/07 13:32:06 3.21
07/09/07 13:32:10 3.19
07/09/07 13:32:14 3.16
07/09/07 13:32:18 3.14
07/09/07 13:32:22 3.14
07/09/07 13:32:26 3.12
07/09/07 13:32:30 3.09
07/09/07 13:32:34 3.09
07/09/07 13:32:38 3.05
07/09/07 13:32:42 3.02
07/09/07 13:32:46 3

Its a sewerage pump stations, so we have inflow that fills the pump
chamber until the water level hits the start float and the pump kicks
in. This will draw the water level down untill the stop float turns
the pump off and the level starts rising again. This cycle continues
through out the monitoring period.

I'm only interested in the highs and lows, but the problem is that due
to the wave action and sensitivity of the sensor, the difference in
level between consecutive readings cant be used to identify the top or
bottom of each cycle as it may just be a "false" high.

So, how do I filter out the intermediate records so I have just the
highs and lows with the date time against each?

Cheers

Grant

Jul 28 '07 #1
5 5580
Also, I've dumped the full 23,000 records out to excel and can graph
it in excel using MZ Graph, so why is there a 4000*4000 limit in
Access and not Excel???.
Jul 28 '07 #2
gr***@technologyworks.co.nz wrote:
>I'm trying to use a scatter chart to plot level reading for a pump
station level sensor.

The sensor takes a reading every 4 seconds, and there are 23,000
reading per chart
[snip]
>So how can I reduse my dataset down to less than 4000 records to use
the MS Graph object.
[snip]
>Its a sewerage pump stations, so we have inflow that fills the pump
chamber until the water level hits the start float and the pump kicks
in. This will draw the water level down untill the stop float turns
the pump off and the level starts rising again. This cycle continues
through out the monitoring period.

I'm only interested in the highs and lows, but the problem is that due
to the wave action and sensitivity of the sensor, the difference in
level between consecutive readings cant be used to identify the top or
bottom of each cycle as it may just be a "false" high.

So, how do I filter out the intermediate records so I have just the
highs and lows with the date time against each?

I can't help with the graph control issues, but would it be
usefule to first filter the data down to the min and max of
each 2 or 3 minute interval?

SELECT DateValue(dt) + TimeSerial(Hour(dt),
2 * (Minute(dt) \ 2), 0) As TimeBracket
Min(Level) As MinLevel,
Max(Level) As MaxLevel
FROM table
GROUP BY DateValue(dt) + TimeSerial(Hour(dt),
2 * (Minute(dt) \ 2), 0)

OTOH, it seems like the peaks should be within a reasonable
range of each other, so it might be useful to filter to
within a range of the min/max of the entire dataset:

SELECT dt, Level
FROM table
INNER JOIN [SELECT Min(Level) As MinLevel,
Max(Level) As MaxLevel
FROM table]. As X
ON Level < MinLevel + .04 OR Level MaxLevel - .04

--
Marsh
Jul 28 '07 #3
On Jul 28, 7:51 am, gr...@technologyworks.co.nz wrote:
I'm trying to use a scatter chart to plot level reading for a pump
station level sensor.

The sensor takes a reading every 4 seconds, and there are 23,000
reading per chart

There appears to be a limit of 4000*4000 data points in MS Chart so I
have had a play with the Office 10 activX chart control, but cant get
that to plot the data at all. It always try to summaries the data for
some reason fathomable only to Bill Gates! Mind you, the MS Graph
wizard does the same, but at least I can work around this wizard, but
with the active X one I cant seem to specify X and Y data sets without
them being summarised.

So how can I reduse my dataset down to less than 4000 records to use
the MS Graph object.

Here is a sample of the data

DateTime Level1
07/09/07 13:22:06 2.96
...
07/09/07 13:29:46 3.49
07/09/07 13:29:50 3.51 high point
07/09/07 13:29:54 3.51 high point
07/09/07 13:29:58 3.51 high point
07/09/07 13:30:02 3.49
...
07/09/07 13:32:46 3

Its a sewerage pump stations, so we have inflow that fills the pump
chamber until the water level hits the start float and the pump kicks
in. This will draw the water level down untill the stop float turns
the pump off and the level starts rising again. This cycle continues
through out the monitoring period.

I'm only interested in the highs and lows, but the problem is that due
to the wave action and sensitivity of the sensor, the difference in
level between consecutive readings cant be used to identify the top or
bottom of each cycle as it may just be a "false" high.

So, how do I filter out the intermediate records so I have just the
highs and lows with the date time against each?

Cheers

Grant
I wrote a little program to do a scatter plot output to pdf format:

http://personalwebs.oakland.edu/~for...catterPlot.pdf
http://personalwebs.oakland.edu/~for...catterPlot.zip

Notes:

1) Provided "as is"
2) Use at your own risk
3) Ignore the warning when opening Acrobat Reader. This has never
caused me any problems. Acrobat Reader is simply "fixing up" the
file.
4) The data point shape should be chosen using a combobox instead of
being hard coded.
5) The software is not polished and should be considered experimental.
6) The software assumes Acrobat Reader is installed in the default
installation directory.
7) The extreme values are not placed on the graph but it is not
difficult to put that information on the graph using code.
8) The fields in any data tables must be ID, X and Y.
9) The software is written in A97 but should convert to later versions
with little or no effort.
10) The software does not expect any Null values in X or Y. (You can
also try 'WHERE X IS NOT NULL AND Y IS NOT NULL' as part of the SQL
string.)

On my (slow) computer it took about five minutes to produce a scatter
plot for 26,000 points in "efficiency" mode. I learned an interesting
thing about Access while trying this out on 30,000 data points:

For very large strings it is better to group several strings together
before appending them. E.g.,

Once strX is large,
strX = strX & "A "
strX = strX & "B "
strX = strX & "C "

is about three times slower than
strX = strX & "A B C "

It isn't intuitive to me that longer strings take longer for Access to
find out where they end. Normally, this situation could occur after
the compressed pixel information for a large image has been added to
the pdf stream. Because of the relatively intense pdf calculations
needed to draw filled circles rather than filled squares, circles take
about eight times longer than squares to create (I.e., it took about
40 minutes for 26,000 data points on my machine using circles.). I
realize that pdf output may not suit your needs. Even though all the
data points are plotted, it is possible for some data points to be
completely covered up by later data points. If you try it, let me
know if you discover any problems.

James A. Fortune
CD********@FortuneJames.com

Jul 30 '07 #4
On Jul 29, 10:07 pm, CDMAPos...@FortuneJames.com wrote:
http://personalwebs.oakland.edu/~for...catterPlot.pdf
I'm having trouble displaying this pdf from my browser. It displays
fine in Acrobat Reader 7.0. Maybe skip the sample pdf. I'll need to
look into why the browser is having difficulty.

James A. Fortune
CD********@FortuneJames.com

Jul 30 '07 #5
On Jul 30, 2:27 pm, CDMAPos...@FortuneJames.com wrote:
On Jul 29, 10:07 pm, CDMAPos...@FortuneJames.com wrote:
http://personalwebs.oakland.edu/~for...catterPlot.pdf

I'm having trouble displaying this pdf from my browser. It displays
fine in Acrobat Reader 7.0. Maybe skip the sample pdf. I'll need to
look into why the browser is having difficulty.

James A. Fortune
CDMAPos...@FortuneJames.com
Marshall

Thanks for the suggestions, i've now grouped the dat into 30 second
intervals so MS Graph can now handle it.

I've done quite a bit of graphing in Access, and this project has
shown up all the bugs in MS Graph like..

-not holding the scale settings, when set by code
-loosing the chart when changing the record source
-MS graph is much more stable in Access 97 than AccessXP!
-sometimes having to toggle between "by Row" and "by colum" to force
the chart to display the data

Thanks again

Grant




Jul 30 '07 #6

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

Similar topics

0
by: Dave | last post by:
Can someone tell me how to change a single legend entry from a Stacked Bar Chart to a Line Chart. All the rest need to stay at a Stacked Bar Chart. Line 50 on the below code is what needs to be...
1
by: Chua Wen Ching | last post by:
I had a scenario here. public struct StructA { public byte avalue; public byte bvalue; public IntPtr InData; public StructA(byte a, byte b)
1
by: Michael Bray | last post by:
I have a table that stores data points for several different data sources. The general format is: DECLARE @Data TABLE ( DataID int, TimeCollected int, DataValue decimal(9,9) )
0
by: rose | last post by:
I have an ACCESS graph and when I turn on show data tables, the data table displays a whole number instead of the percentage like the graph. I have formatted the sourc query to be percentage, but I...
0
by: Charls | last post by:
Hi, How do I get the value of a Data Point from a column in a barchart. I have tried: ActiveChart.SeriesCollection(2).Select ActiveChart.SeriesCollection(2).Points(1).Select ...
7
by: ramana | last post by:
I'm wondering if someone could point me to the flaw in the following code that uses the while(!FP.eof()) condition to read the input data. This condition is reading the last data point of the file...
0
by: G Gerard | last post by:
Hello I have a graph in a report that is has the following properties: OLE Class - Microsoft Graph 2000 Chart Class - MSGraph.Chart.8 On some computers this graph does not work. I suspect...
0
by: Jerry Armes | last post by:
I have been using a Microsoft Chart Control 6.0 (SP4) (OLEDB) in an Access 2000 VBA project where the data source is an array and the data connection uses the chartdata method. Suddenly, I am...
2
by: tmarynell | last post by:
I have created an SPC chart in Access. I need specific details of each data point wihtin the line graph to display when you hover over or double-click on the specific data point. It should include...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.