Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow Graph
Message
From
12/04/2000 16:45:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/04/2000 16:23:24
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00358580
Message ID:
00358943
Views:
20
>Many thanks for your reply.
>
>>Your code seems more like Excel code than MSGraph. This is another side of it. Code style, support changes from version to version. Your code might fail on a computer where MSGraph is registered with version 5.
>
>It is possible that I'm using an old technique. I've got this graph to work through trial and error and I appreciate it maynot be the best approach - I tried :-)
>
>>Unfortunately only free alternative I know is MSChart Activex. It's really much faster than MSGraph but I don't know its constants (IOW cannot use for the moment).
>
>Say what? I thought MSChart and MSGraph was the same thing. You learn something new everyday :-)
>
>>If your charts are simple type (line, bar) then the fastest and free one is pure VFP itself :) With VFP only approach you could even dare to refresh 10 graphs per field change -lostfocus- on a grid on a P200 with 32Mb RAM (been there done that:).
>
>My graph is very simple. The worst case is three lines, so I'm very interested in the VFP solution. Could you enlighten me further?
>
>
>Jason


For a specific project I had a grid something like this :
Depth
totalSO4
dissolvedO
NH3
NH4
pH
Temperature
Salinity
...

Users were entering/updating data and their data was being validated against possible ranges. Well ranges cannot quite prevent erronous data. Say they could enter these w/o breaking range (Salinity might be in range 44-75 : just imaginery, scientist do know them not me :)
(meters)
Depth Salinity
----- --------
0      44
1      44.1
2      44
3      70 ---> Ooops. It shouldn't change this far.
4      46
I couldn't find a good and fast way to check these online. So my workaround was to show a line graph against depth per parameter below the grid. While the data is in allowable range users could see it makes a "peak" as soon as they enter a value like above. Or a viewer-checker could better say data is erronous at a glance w/o checking the data one by one (even I caught their erronous data w/o an idea about the ranges:)
What I did was to create a specific line graph container class. For each subclass dropped on form I only changed properties "Label" (tSO4, NH3...) and fieldname that graph is drawn for (and a few optional like line color, mark color..). Class was SQL selecting depth and values for the field, sizing them, and drawing lines for the values.
When I have more time I'll try to send you the class with sample.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform