How to change DBChart.Axes.Bottom.LabelsFormat?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jeff
Newbie
Newbie
Posts: 11
Joined: Wed Oct 28, 2015 12:00 am

How to change DBChart.Axes.Bottom.LabelsFormat?

Post by Jeff » Fri Nov 13, 2015 11:24 am

How to change DBChart.Axes.Bottom.LabelsFormat?

Current DBChart.Axes.Bottom.Label is a Date format field, it default display format is 'dd/mm/yyyy', 'mm/yyyy'
how can change to 'yyyy年m月' or 'yyyy年m月d日' or 'yyyy年q季度' ?
"年" means year, "月" means month , "季度" means Quarter

I cannot found the answers in the forum and online tutorials and reference.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: How to change DBChart.Axes.Bottom.LabelsFormat?

Post by Yeray » Fri Nov 13, 2015 4:51 pm

Hello,

You can set the format string as the Chart1.Axes.Bottom.DateTimeFormat.
Note TeeChart internally transforms the TDateTimes to strings using DateTimeToString function here, so there you can find the supported combinations.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Jeff
Newbie
Newbie
Posts: 11
Joined: Wed Oct 28, 2015 12:00 am

Re: How to change DBChart.Axes.Bottom.LabelsFormat?

Post by Jeff » Fri Nov 13, 2015 5:49 pm

Thank you, but not work, how to get the full documents or help ?

Current online documents seems incomplete.

The Tee9new.exe demos' search function not work.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: How to change DBChart.Axes.Bottom.LabelsFormat?

Post by Yeray » Mon Nov 16, 2015 11:56 am

Hello,
Jeff wrote:Thank you, but not work, how to get the full documents or help ?
Could you please post an image showing what would you like to achieve?
Jeff wrote:Current online documents seems incomplete.
In the online docs, I can find the TeeChart VCL tutorials, and inside it I can find the Tutorial 4 - Axis Control #Labels section.
Jeff wrote:The Tee9new.exe demos' search function not work.
If I search for "DateTimeFormat" in the Features Demo I get an AV but it continues and I get 4 results:
DatetimeFormat.png
DatetimeFormat.png (149.8 KiB) Viewed 6989 times
If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.

Thanks in advance.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply