Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying Data Graphically - Suggestions?
Message
 
À
31/01/2002 10:16:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00612750
Message ID:
00613439
Vues:
16
Well, if you can be assured that the user has MSOffice licensed on their desktop, you can use the Office charting tool - but for more generic use, you can either go with a third party ActiveX (as has been suggested earlier) or just roll your own simple bar graph.

I wrote a web application that needed a simple bar chart, so I simply programmatically created a bunch of colored boxes, then set their heights based upon the data. Being cheap, I didn't want to have to purchase an expensive control for such a simple chart (but I'd do it in a minute if I needed more complex charts).

You can do this on a VFP form by simply creating a series of shapes on the form, and then programmatically altering their height and top properties. If the number of data items across varies, you may also have to alter their visibility - or just set the heights to zero.

It turns out to be just as much work as using a chart object, since you have to set each data point anyway.... and this gives you a bit more control over presentation.

FWIW

>Just standard bar chart, nothing fancy ;)
>
>Thanks
>
>Pascal
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform