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.?
How to alter the scale of Candle Chart?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Tanrich,
Try using:
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 |
Instructions - How to post in this forum |