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 2371

Summary: Wrong Marks displayed for the first 6 bars
Product: VCL TeeChart Reporter: Peter Højrup <php>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED WORKSFORME    
Severity: normal CC: yeray
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Two examples of the first 6 bars in a tBarSeries showing wrong Mark.

Description Peter Højrup 2020-09-26 07:56:19 EDT
Created attachment 947 [details]
Two examples of the first 6 bars in a tBarSeries showing wrong Mark.

When using a tBarSeries in TChart I find that the first 6 bars have a wrong Mark. The following (often several hundred) have the correct mark.
In the enclosed examples the first should display the x-value (correct from bar 7) and the second the y-value (correct from bar 7).
The bars have been added with a command like:

  for i := Low (bars) to High (bars) do
    BarSeries.Add (bars [i]);

The present example was made with the latest version of TChart, but earlier versions showed the same. Identical in 32- and 64-bit versions, and in Delphi 10.3 and 10.4
Comment 1 yeray alonso 2020-09-28 04:08:52 EDT
I'm trying to reproduce the problem without success with the code below:

var i: Integer;
const bars: TArray<Integer> = [295, 315, 215, 105, 15, 50, 47, 65, 59];
begin
  with TBarSeries(Chart1.AddSeries(TBarSeries)) do
  begin
    for i:=Low(bars) to High(bars) do
      Add(bars[i]);
  end;

I'll close this but we'll be pleased to reopen it if we get a simple example project we can run as-is to reproduce the problem.