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 1701 - Axis Labels not shown in some circumstances
Summary: Axis Labels not shown in some circumstances
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: 20.170306
Hardware: PC Windows
: --- minor
Target Milestone: v2017.20
Assignee: david berneda
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-29 05:00 EST by yeray alonso
Modified: 2017-03-17 05:19 EDT (History)
0 users

See Also:
Chart Series: ---
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 2016-11-29 05:00:30 EST
Depending on the Chart width and what points have labels, the bottom axis doesn't show the labels.

uses Series;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);

  function IsNumberInArray(const ANumber: integer;
  const AArray: array of integer): boolean;
  var
    i: integer;
  begin
    for i := Low(AArray) to High(AArray) do
      if ANumber = AArray[i] then
        Exit(true);
    result := false;
  end;

var i, c: Integer;
begin
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;

  Chart1.Width:=538;
  Chart1.Height:=296;

  c:=0;
  with Chart1.AddSeries(TLineSeries) do
    for i:=1 to 723 do
      if IsNumberInArray(i, [2,36,96,156,216,276,336,396,455,515,575,635,695]) then
      begin
        Add(50,IntToStr(c));
        Inc(c);
      end
      else
        Add(50);
end;

Reproduced in v2016.19. Works fine in v2016.18.
"Speed fix" changes affecting this: ea504ca and 8b371e8 in git.