Page 1 of 1

How to alter the scale of Candle Chart?

Posted: Mon May 15, 2006 8:02 am
by 9529760
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.?

Posted: Mon May 15, 2006 9:36 am
by narcis
Hi Tanrich,

Try using:

Code: Select all

Chart.Series(0).FunctionType.Period = Chart.GetDateTimeStep(dtOneMonth)