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 2034

Summary: Exception on hover stacked TAreaSeries
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: yeray alonso <yeray>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: 24.180321   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=16911
Chart Series: Area Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2018-05-11 02:49:58 EDT
Having two stacked TAreaSeries, when you move the mouse over the area, PointInArea calls GetOriginPos(Index-1) to calculate the rectangle, but this function is called for Index=0 so it can give an exception.

Sample code:

  Chart1.View3D:=False;
  Chart1.Legend.Hide;
  for i:=0 to 1 do
    with Chart1.AddSeries(TAreaSeries) as TAreaSeries do
    begin
      MultiArea:=maStacked;
      FillSampleValues(5);
    end;