Page 1 of 1

Displaying DateTime for point values in Marks and Legends

Posted: Mon Nov 27, 2006 9:36 am
by 9347813
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

Posted: Tue Nov 28, 2006 12:08 pm
by 9347813
Any news for my topics ?
Thanks in advance for any help...

Posted: Tue Dec 05, 2006 12:07 pm
by Pep
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.