>>>
When I run the code below, from a method, it cannot find oChart.
>>>Besides being an object, what is oChart?>>>
>>>Did you drop an instance of acxChart from Graphs.vcx ( included with the sample code for the session ) onto a form and name it oChart?
>>>
>>>
* MSGraph>>>
>>>As Cetin correctly states, this code is for generating graphs using MsChart.ocx, not MsGraph
>>
>>FWIW - I concur
>Terry,
>I see some very interesting uses for your graphing program. I took a table created for a report, made the columns to rows and rows to columns, made some hard code changes for your "Populate the DataGrid Object" and used the table as my source to populate the graph. It shouldn't be difficult use afields()and reccount() for the table and substitute in for the hard coded 1 to 8 for the column and row count. Any idea how to relabel the Legend that now shows "R1" to "R8" for rows 1-8 and the "C1" to "C8" labels on the x axis.
>Sammie
Sammie,
Check this for setting various things in MSChart (you can control labels and have more than one label row + grouping in labels etc):
Re: How to use MS Chart in VFP as a ActiveX control? Thread #
570325 Message #
570338Cetin