Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MsGraph- Custom Chart Types
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
MsGraph- Custom Chart Types
Miscellaneous
Thread ID:
00722755
Message ID:
00722755
Views:
51
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
Next
Reply
Map
View

Click here to load this message in the networking platform