TMarksItem is hidden by ChartLegend

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
lodi68
Newbie
Newbie
Posts: 1
Joined: Tue May 06, 2014 12:00 am

TMarksItem is hidden by ChartLegend

Post by lodi68 » Tue Nov 04, 2014 7:58 am

Hi,

I have added a TPointserie to a chart with an event that shows the mark when hoovering over the point.
All works fine, only the mark (TMarksItem) is (partly) hidden by the legend (and other custom controls I added to the chart)

I use PointSerie.Marks.OnTop := true to have the item not being hidden by (other) series.

Is there a possibility to have it also "overlay" the legend?

(see attached screenshot)

Thanks,
Mark
Attachments
ScreenClip.png
Screenshot
ScreenClip.png (28.3 KiB) Viewed 3148 times

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

Re: TMarksItem is hidden by ChartLegend

Post by Yeray » Tue Nov 04, 2014 12:03 pm

Hello,

I'm trying to reproduce the situation with the following code but the marks I get are always drawn over the legend:

Code: Select all

uses Series, TeeTools;

procedure TForm1.FormCreate(Sender: TObject);
var i, j: Integer;
    tmp: Double;
begin
  Chart1.View3D:=false;

  for i:=0 to 4 do
    with Chart1.AddSeries(TLineSeries) as TLineSeries do
    begin
      tmp:=50+random*50;
      Add(tmp, 'this is a long labels for ' + sLineBreak +
          'Series ' + IntToStr(i) + ', Value: ' + FormatFloat('#0.##', tmp));

      for j:=1 to 24 do
      begin
        tmp:=YValues.Last+random*10-5;
        Add(tmp, 'this is a long labels for ' + sLineBreak +
            'Series ' + IntToStr(i) + ', Value: ' + FormatFloat('#0.##', tmp));
      end;

      Active:=i mod 2=0;
    end;

  Chart1.Tools.Add(TMarksTipTool);

  Chart1.Legend.CheckBoxes:=true;
  Chart1.Axes.Bottom.LabelStyle:=talValue;
end;
Could you please arrange a simpl eexample project we can run as-is to reproduce the problem here?

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

Post Reply