Information générale
Catégorie:
Contrôles ActiveX en VFP
Hi Keith
I use teechart (I think it is great) and mayby I can can help you a little bit
1) you can add (empty) series to chart by:
a) code
thisform.oleTeeChart.addSeries(1) && 1= bar series type (1st series index= 0)
thisform.oleTeeChart.Series(0).name = "Sales"
thisform.oleTeeChart.Series(0).Color = RGB(255,0,0)
and succesisive designing of the chart may be for example
this.oleteeChart.Series(0).ColorEachPoint=.T.
this.oleteeChart.Legend.Visible = .t.
this.oleteeChart.Legend.CheckBoxes = .T.
thisform.oleteeChart.Header.Text(0)="Sales of T-shirts"
this.oleteeChart.Page.MaxPointsPerPage = 20
you can also change series type by code
this.oleTeeChart.changeSeriesType(0,5)
b)
you can simply design appearance of your series in form deisgner - edit activex
2) you can add points to series by
a)code
thisform.oleTeeChart.Series(0).Add( 1000, "january", rgb(255,0,0 )
thisform.oleTeeChart.Series(0).Add( 2000, "february", rgb(255,0,0 )
...
b)you can link your series with any odbc or ole db data source
in edit teechart activex form select series page and then select data source page then select (or add new) dataset
3) You can also use teechart tutorial - examples are in VB, but it is not a problem IMO
>Anyone have any experience with using TeeChart Pro version 5 (an ActiveX graphing package)? I can't get the data that is returned in the cursor ("SQLResult" from SQL Server 7) to display in the graph.
>
>Thanks...
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement