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 - Wrong Marks displayed for the first 6 bars
Summary: Wrong Marks displayed for the first 6 bars
Status: RESOLVED WORKSFORME
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-26 07:56 EDT by Peter Højrup
Modified: 2020-09-28 04:08 EDT (History)
1 user (show)

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


Attachments
Two examples of the first 6 bars in a tBarSeries showing wrong Mark. (32.69 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-09-26 07:56 EDT, Peter Højrup
Details

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