Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enhanced Graphing within VFP using pseudomaps
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Enhanced Graphing within VFP using pseudomaps
Miscellaneous
Thread ID:
00024674
Message ID:
00024674
Views:
67
A while back I put up the idea of table based pseudomaps. Well now I've got an interesting adaptation. You can use data in a table to generate a
graph with the position of each point calculated via a
simple procedure call. Now add an object that is a container with two shapes, a small box the same color
as the background and a point marker (diamond, square etc). Add to the tooltip property for the object the value of the point. Now add lines to connect the dots and add lines for the axis and tick marks (you can use polymorphism to make this real easy).

Result is you get a graph all within VFP that has tooltip enabled points for displaying values. Add code to the click event and you have a hyperlink graph.
All at much faster speeds than some graphing ocx and with much more control.

You can create bars and size them for bar graphs and even some code will generate pie charts. Why reinvent the wheel you say? Well the tooltip display is really nice and if you have it in other sections of your app
the continuity in the graph provides a single user interface feel. In addition the hyperlink is really nice. If you want to explode a bar in a graph into
another subgraph (like Quicken does) I don't know of any
graphing ocx that does this. Keeping it all within VFP and all as objects on a form allows this.

Thoughts?
Todd Burstain, MD
infinitydoc@delphi.com
Reply
Map
View

Click here to load this message in the networking platform