AxisValueFormat not working as expected

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Whookie
Newbie
Newbie
Posts: 25
Joined: Fri Jan 07, 2011 12:00 am

AxisValueFormat not working as expected

Post by Whookie » Wed Sep 23, 2015 11:54 am

Hi
I got another strange thing with the AxisValueFormat (and possibly others) not working as expected:
1.png
1.png (36.11 KiB) Viewed 7614 times
The screen-shot show Delphi with a form ("Auswertung") and the LeftAxis - valus and its "Values Formt:"

On the left there is a little tool (Form2) compiled an running to show some numbers with a certain format mask using Delphis FormatFloat - funktion.

As you can see, there are two totally different results. While the Delphi function seems to work as expected AxisValueFormat does some weird possibly mixing format specifiers and local format settings?

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

Re: AxisValueFormat not working as expected

Post by Yeray » Fri Sep 25, 2015 1:51 pm

Hello,

I've prepared a simple example project to reproduce this and it seems to work fine form me here.
Here is how it looks:
ValueFormat.png
ValueFormat.png (20.82 KiB) Viewed 7586 times
Could you please modify the project so we can reproduce the problem here?
TestValueFormat.zip
(1.97 KiB) Downloaded 611 times
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

Whookie
Newbie
Newbie
Posts: 25
Joined: Fri Jan 07, 2011 12:00 am

Re: AxisValueFormat not working as expected

Post by Whookie » Mon Sep 28, 2015 10:43 am

Hi,
thats real strange. Your example is working on my side as well, so I just did a copy and paste of my TChart. As it seems mine isn't working while yours continue to behave well...

Maybe you are able to reproduce that on your side too?
Attachments
FormatFloat_Steema.7z
(5.02 KiB) Downloaded 628 times

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

Re: AxisValueFormat not working as expected

Post by Yeray » Wed Sep 30, 2015 11:37 am

Hello,

I see the new chart in the project but you aren't modifying the axes AxisValuesFormat when the button is clicked.
Adding this it works fine for me here:

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
//...

  MyFilterChart.Axes.Left.AxisValuesFormat:=Edit1.Text;
  MyFilterChart.Axes.Bottom.AxisValuesFormat:=Edit1.Text;

  MyFilterChart.Repaint;
end;
formatfloat.png
formatfloat.png (30.69 KiB) Viewed 7506 times
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