How to alter the scale of Candle Chart?
Posted: Mon May 15, 2006 8:02 am
Hi,
I have some question about altering the scale of my candle chart.
I'm currently using TeeChart Pro v5.
e.g. I got a year of data, from 1 year b4 the current day, but I want each label of the chart should be each one month. (Coz i found that there are some months have 2 labels, but some are missing.)
I found the following code from tutorial, but it does work
Chart.Series(0).SetFunction tfAverage
Chart.Series(0).FunctionType.PeriodStyle = psRange
Chart.Series(0).FunctionType.Period = Chart.GetDateTimeStep dtOneMonth
Chart.Series(0).FunctionType.PeriodAlign =paLast
It show the 'dtOneMonth' is not an expect end of statement
How could it be altered.?
I have some question about altering the scale of my candle chart.
I'm currently using TeeChart Pro v5.
e.g. I got a year of data, from 1 year b4 the current day, but I want each label of the chart should be each one month. (Coz i found that there are some months have 2 labels, but some are missing.)
I found the following code from tutorial, but it does work
Chart.Series(0).SetFunction tfAverage
Chart.Series(0).FunctionType.PeriodStyle = psRange
Chart.Series(0).FunctionType.Period = Chart.GetDateTimeStep dtOneMonth
Chart.Series(0).FunctionType.PeriodAlign =paLast
It show the 'dtOneMonth' is not an expect end of statement
How could it be altered.?