Page 1 of 1

How to change DBChart.Axes.Bottom.LabelsFormat?

Posted: Fri Nov 13, 2015 11:24 am
by 16576728
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.

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

Posted: Fri Nov 13, 2015 4:51 pm
by yeray
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.

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

Posted: Fri Nov 13, 2015 5:49 pm
by 16576728
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.

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

Posted: Mon Nov 16, 2015 11:56 am
by yeray
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 6895 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.