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 1388

Summary: MinorTicksCount not rendering on all sections of a logarithmic axis
Product: VCL TeeChart Reporter: christopher ireland <chris>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: normal CC: ulrich.brueggemann, yeray
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Bug Depends on: 1387    
Bug Blocks:    

Description christopher ireland 2015-12-09 12:54:51 EST
With the following code, note the behaviour of the MinorTicks when the Axis is set to Logarithmic:

procedure TForm1.InitializeChart;
begin
   Chart1.View3D:=false;
   TLineSeries(Chart1.AddSeries(TLineSeries)).FillSampleValues(100);
   Chart1.Axes.Bottom.Logarithmic:=true;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1.Axes.Bottom.Increment := 4;
  Chart1.Axes.Bottom.MinorTickCount := 5;
  Chart1.Axes.Bottom.MinorTickLength := 4;
  Chart1.Axes.Bottom.MinorTicks.Color := clRed;
  Chart1.Axes.Bottom.SetMinMax(2, 8);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  Chart1.Axes.Bottom.Increment := 40;
  Chart1.Axes.Bottom.MinorTickCount := 5;
  Chart1.Axes.Bottom.MinorTickLength := 4;
  Chart1.Axes.Bottom.MinorTicks.Color := clRed;
  Chart1.Axes.Bottom.SetMinMax(2, 80);
end;
Comment 1 christopher ireland 2015-12-09 12:56:27 EST
This issue made dependent on http://bugs.teechart.net/show_bug.cgi?id=1387
Comment 2 yeray alonso 2017-06-15 04:15:01 EDT
*** Bug 1532 has been marked as a duplicate of this bug. ***
Comment 3 UliBru 2017-06-18 11:46:04 EDT
Another example:
Create a chart with logarithmic x-axis from 1 to 10000.
Zoom into chart from e.g. 150 to 10000.
The chart displays the x axis minor ticks from 1000 to 10000, all minor ticks below 1000 get lost.
Comment 4 yeray alonso 2017-06-21 04:09:59 EDT
A solution proposal from @UliBru in the forums here:
http://www.teechart.net/support/viewtopic.php?f=3&t=16606#p73924