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
TMarksItem is hidden by ChartLegend
TMarksItem is hidden by ChartLegend
- Attachments
-
- Screenshot
- ScreenClip.png (28.3 KiB) Viewed 3264 times
Re: TMarksItem is hidden by ChartLegend
Hello,
I'm trying to reproduce the situation with the following code but the marks I get are always drawn over the legend:
Could you please arrange a simpl eexample project we can run as-is to reproduce the problem here?
Thanks in advance.
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;
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |