How to alter the scale of Candle Chart?

TeeChart for ActiveX, COM and ASP
Post Reply
Tanrich
Newbie
Newbie
Posts: 7
Joined: Wed Dec 28, 2005 12:00 am

How to alter the scale of Candle Chart?

Post by Tanrich » 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.?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 15, 2006 9:36 am

Hi Tanrich,

Try using:

Code: Select all

Chart.Series(0).FunctionType.Period = Chart.GetDateTimeStep(dtOneMonth)
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply