Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing data as legend in Graph
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00617998
Message ID:
00618186
Views:
21
Hi!

Just experiment the bit. Put an MS Graph ActiveX on the new VFP form, choose the Pie type. Select the Pie inside chart and double click on it. Select Data Lables pane and set option for data labels to "Show value". If you want values displayed inside of the Pie, not outside, select appeared values, double click on them, then in the Alignment tab select for "Label Position" value "Inside End".

When you create such graphs programmatically, all thses things are available by using MS Graph objects model. You can access all objects programmatically and set up chart type, data values, options to show labels, properties for labels etc. The entire objects model for MS Graph control is described at the MS site, though if you installed help files, try to press F1 when editing MS Graph ActiveX and see for chapter "Programming Information".

When you use General field to store MS Graph control, you can access its objects model and modify chart only using OLEBoundControl. Create some form, put OLEBoundControl on it, set up ControlSource for OLEBoundControl to General field containing MS Graph, refresh the control, then using reference through OLEBoundControl you will be able to access the entire objects model for MS Graph. It is not necessary to display that form for users. You can find samples here sent by Cetin Basoz that work such way.

HTH.

P.S. I used MS Graph 2000, so in your case with different version all above might be different.

>Hi All
>I use a graph as an output for one of my reports. The graph is generated automatically ( using do (_GENGRAPH) with "autograph",... ), and it prints well. I am using a 3D Pie as graph type. I would like to have the data printed on top or inside of every slice. How can i achieve this?
>
>TIA
>Jaime
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform