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 2643 - Hover over marks highlights value from another stacked bar
Summary: Hover over marks highlights value from another stacked bar
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 38.230607
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-26 08:40 EDT by yeray alonso
Modified: 2023-10-26 08:40 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
screenshot (24.26 KB, image/png)
2023-10-26 08:40 EDT, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2023-10-26 08:40:43 EDT
Created attachment 1056 [details]
screenshot

Having stacked bars and mouse hover active, when you move the mouse over a mark, two bars are highlighted: the bar related to the mark, and the bar in the back.

Simple example:

uses Chart, TeEngine, Series;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
var s, v: Integer;
begin
  Chart1:=TChart.Create(Self);

  with Chart1 do
  begin
    Parent:=Self;
    Align:=alClient;
    Color:=clWhite;
    Gradient.Visible:=False;
    Walls.Back.Color:=clWhite;
    Walls.Back.Gradient.Visible:=False;
    //Legend.Hide;
    View3D:=False;
  end;

  for s:=0 to 2 do
    with TBarSeries(Chart1.AddSeries(TBarSeries)) do
    begin
      Title:='Long title for Series'+IntToStr(s);
      MultiBar:=mbStacked;
      Marks.Style:=smsSeriesTitle;

      for v:=0 to 3 do
      begin
        if ((s=0) and (v=1)) or
           ((s=1) and (v=2)) then
        begin
          AddNull();
          Continue;
        end;

        Add(5+random*5, IntToStr(v));
      end;
    end;
end;