I am using D5 with RB7.04 and TeeChart 7.04.
I have a TppDPTeeChart on my form and I set the Bottom Axis Label format Date time format to mmm/yyyy.
When viewing the graph in design mode the botom label displays properly (Dec/2005).
When I run the application the label is displayed wrong. It comes out as 12/1/2005
Why does it not display properly when running? How can I fix it?
Thanks in advance,
Rodger
Problem with X Axis label
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Rodger,
Are you setting this format at design-time? It could be that with TppDPTeeChart, at design-time, this property is not stored. You could try setting it at run-time.
Are you setting this format at design-time? It could be that with TppDPTeeChart, at design-time, this property is not stored. You could try setting it at run-time.
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 |
Hi Rodger,
could you please test if the same code you're using works fine with a TDBChart component ? Also, remember to set the XValues do datetime before to add the data : Series1.XValues.DateTime := true;
If it only happens with the tppChart component (the RB TDBChart
wrapper) contact with Digital Metaphors and ask for a patch file.
could you please test if the same code you're using works fine with a TDBChart component ? Also, remember to set the XValues do datetime before to add the data : Series1.XValues.DateTime := true;
If it only happens with the tppChart component (the RB TDBChart
wrapper) contact with Digital Metaphors and ask for a patch file.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi Rodger,
using the following line works fine here (with DBChart) :
dbChart1.Axes.Bottom.DateTimeFormat := 'mmm-yyyy';
Could you please check if it works for you ?
using the following line works fine here (with DBChart) :
dbChart1.Axes.Bottom.DateTimeFormat := 'mmm-yyyy';
Could you please check if it works for you ?
Pep Jorge
http://support.steema.com
http://support.steema.com
Nope wasn't working for me. I tried
DBChart1.Axes.Bottom.DateTimeFormat := 'mmm-yyyy';
and
DBChart1.BottomAxis.DateTimeFormat := 'mmm-yyyy';
neither worked. I have the series DataSource set to DataSet with the Dataset set to the name of my query. I have the Date Column set in both the Labels and the X property with the DateTime checkbox checked.
Is there something wrong there?
Thanks in advance,
Rodger
DBChart1.Axes.Bottom.DateTimeFormat := 'mmm-yyyy';
and
DBChart1.BottomAxis.DateTimeFormat := 'mmm-yyyy';
neither worked. I have the series DataSource set to DataSet with the Dataset set to the name of my query. I have the Date Column set in both the Labels and the X property with the DateTime checkbox checked.
Is there something wrong there?
Thanks in advance,
Rodger