Hi!
Can you create it manually? If yes, then you can do it programmatically. :-)
Tip - create it manualy, then browse properties (under VFP7) of "Thisform.myGraph.object" object to see what properties and values you require assign to get desired result programmatically.
>Does anyone know if there's a way to create a custom chart type within MSGraph version 8.0 . I would like to create a line-Column type chart. Some basic questions would be:
>
>How would the data be passed for this type of chart?
>Would it be the same as the code below for a 3-D Clustered Column chart type?
>What would be some of new chart properties... ChartType number?
>
>Sample Code for a Clustered Column Chart Type
>select ss_prod_stn
>&& Define the data to be passed to the general field which will be used within the graph
>&& The field names defines the x values and series for the graph.
>lc_graphdata="Station"+chr(9)+"Prod Rate"+chr(9)+"Base Rate"+chr(9)+chr(13)+chr(10)
>go top
>do while eof()=.f.
> lc_graphdata=lc_graphdata+str(station)+chr(9)+str(prod_rate)+chr(9);
> +str(avg_pts_hr)+chr(9)+chr(13)+chr(10)
> skip
>enddo
>select prod_graph
>&& Create the general field and pass the data
>APPEND GENERAL prod_graph CLASS "MsGraph.Chart.8" Data lc_graphdata
>WITH Thisform.myGraph
> .ControlSource = "prod_graph.prod_graph"
> .object.haslegend=.t.
> .object.ChartType = 54
>
> ect......
>EndWith
>
>Thanks,
>Mike
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #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.