>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