Page 1 of 1

ALways ONE MARK is missing!

Posted: Mon Jul 13, 2015 11:41 am
by 16575033
Hi,
I think I have found a bug:
Always when I try to load a series in on 3D POINT CHart, and I want to make the marks visible, there is one missing! Try it yourself with random numbers.
I just have 12 Points but one mark is missing. It is strange, because is not the latest mark nor the first mark.
I use Delphi XE6 and the latest TEECHART VCL. 2015.15
Please help me, I have already told it on the bug site .
thanks
walter

Re: ALways ONE MARK is missing!

Posted: Tue Jul 14, 2015 1:52 pm
by yeray
Hello Walter,

Could you please arrange a simple example project we can run as-is to reproduce the problem here?
There will probably be some other properties you set in your chart that are influencing here, because a new simple chart with a TPointSeries and 12 random values seems to work fine for me here.

Code: Select all

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
begin
  with Chart1.AddSeries(TPointSeries) as TPointSeries do
  begin
    FillSampleValues(12);
    Marks.Visible:=true;
  end;
end;
I've also asked for an simple example in the ticket you opened in the tracker here.
Also, please read the instructions about How to post in this forum below in my signature.

Re: ALways ONE MARK is missing!

Posted: Tue Jul 14, 2015 5:45 pm
by 16575033
Hi Yeray,
I have attached a zip als example in the bug ticket, please let me know if you can verify it.
Thanks
Walter

Re: ALways ONE MARK is missing!

Posted: Wed Jul 15, 2015 6:23 am
by 16575033
:?: When you run this example, you have shown, that you also see one point (860) without a label!

Re: ALways ONE MARK is missing!

Posted: Wed Jul 15, 2015 6:44 am
by 16575033
here the screen of the shown example: Image and here my example sent to the bug-report. Image

Re: ALways ONE MARK is missing!

Posted: Wed Jul 15, 2015 6:45 am
by 16575033
by teh shown example 980 is also missing!

Re: ALways ONE MARK is missing!

Posted: Wed Jul 15, 2015 11:50 am
by yeray
Hello,

That mark is being hidden by the AntiOverlap system in the series.
You can disable it in the editor at design time unselecting the "Auto Position" checkbox at the Series' Marks/Style tab.

And you can also disable it at runtime by code:

Code: Select all

  Series1.Marks.Automatic.Move:=false;

Re: ALways ONE MARK is missing!

Posted: Wed Jul 15, 2015 12:42 pm
by 16575033
Yes that was the reason! Thanks lot! I am so happy that this was no bug but only a definition problem.
best
walter
:D