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 - Exception on hover stacked TAreaSeries
Summary: Exception on hover stacked TAreaSeries
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 24.180321
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-11 02:49 EDT by yeray alonso
Modified: 2018-05-11 02:50 EDT (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;