Displaying DateTime for point values in Marks and Legends

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
epf
Newbie
Newbie
Posts: 2
Joined: Fri Oct 20, 2006 12:00 am

Displaying DateTime for point values in Marks and Legends

Post by epf » Mon Nov 27, 2006 9:36 am

I am trying to use DateTime format for a simple Pie Chart (Last version for C++ Builder 5)
MySerie->ValueFormat = "ddddd"
MySerie->YValues->DateTime = true
MyChart->LeftAxis->DateTimeFormat = "ddddd"

and in the Marks, the Value is displayed with "ddddd" (in the legend, the
display is ok).
Is it a bug or am I missing something ?

I found a kind of workaround by using the Legend Value for the MarksStyle so
I can get correct format because it follows the legend display...
but it is not very satisfying...


Same problem using the format for the Legend:
MySerie->ValueFormat = "dddd, MMMM dd, yyyy"
MySerie->YValues->DateTime = true

In the legend, the date displayed are 3/26/1996 instead of Tuesday, March
26, 1996
and in the Marks, I get "dddd, MMMM dd, yyyy" !

The problem is the same for Bar/Line/Point series

Thanks

epf
Newbie
Newbie
Posts: 2
Joined: Fri Oct 20, 2006 12:00 am

Post by epf » Tue Nov 28, 2006 12:08 pm

Any news for my topics ?
Thanks in advance for any help...

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Dec 05, 2006 12:07 pm

Hi,

yes, you're correct, it's a bug. I've added it down our defect list and a fix for it will be considered to inclusion for the next maintenance releases. In meantime a workaround could be to use the OnGetMarkText and OnGetLegendText events to put the correct string for each Mark and Legend item.

Post Reply