Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MsGraph
Message
De
05/11/2001 11:45:17
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/11/2001 00:48:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00574885
Message ID:
00577415
Vues:
28
>SELECT mc,end ;
> FROM dscHd WHERE date = THIS.pRepDate ;
> ORDER BY mc INTO CURSOR wTemp
>
>mRecNo = RECCOUNT()
>
>WITH THISFORM.pageFrame1.page3.msChart
> .chartType = VtChChartType2dBar
> .columnCount = 1
> .rowCount = mRecNo
> mColC = 1
> SCAN
> .data = end
> .dataGrid.RowLabel(mColC,1) = mc
> mColC = mColC + 1
> ENDSCAN
>
>.DataGrid.ColumnLabel(1,1) ='Machine Occupation'
>
>ENDWITH
>
>THISFORM.Refresh
>
>
>I run the program above, problem is the Y-axis Scale is incorrectly, eg. my data only from 7- 40 but the scale can be 1 - 100 and the bar Height is also showing incorrectly, the data may be 10 but the height may sow 40.
>
>What 's wrong with my problem.
>
>TIA.

Teo,
I only added .Row = recno() to scan...endscan and got correct scaling :
SCAN
        .Row = recno()
        .data = end
	.dataGrid.RowLabel(mColC,1) = mc
	mColC = mColC + 1
ENDSCAN
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform