Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1399

Summary: Legend highlighting does not match series highlighting
Product: VCL TeeChart Reporter: h.hasenack <hans>
Component: LegendAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: minor CC: david, sandra
Priority: ---    
Version: 150901   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description h.hasenack 2015-12-18 05:10:59 EST
wrong legend item is highlighted when hoovering the mouse over a series

reproduce:
- Create a chart with 3 barseries, add random data
- close editor, check higlighting for the 3 series: all OK
- now de-activate the 1st series from within the editor
- Move mouse over the chart. Voila, the highlighter does not take into account the disabled series and huighlights series 3 when hoovering over series 2. But bars are highlighted correctly.

Adding a screenshot is a bit hard since it wond incorporate the mouse cursor.

Quite a chance I will provide a patch as well since I want it fixed today.
Comment 1 h.hasenack 2015-12-18 06:24:33 EST
I have been trying to debug and fix this, but it appears to be quite hard. Maybe later. I Hope Steema will provide an "easy fix" soon.
Comment 2 h.hasenack 2015-12-18 06:27:51 EST
By the way, our bugtracker issue number is 21486

https://mantis.sg-assetmanagement.nl/view.php?id=21486
(Not publicly accessible AFAIK)
Comment 3 david berneda 2023-03-16 16:05:21 EDT
Fixed. There was a missing check of series Visible, at Chart.pas:

   function NotLegendVisible(UpTo:Integer):Integer;
   var t : Integer;
   begin
     result:=0;

     for t:=0 to UpTo do
         if (not Series[t].Visible) or (not Series[t].Legend.Visible) then
            Inc(result);
   end;