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 - MinorTicksCount not rendering on all sections of a logarithmic axis
Summary: MinorTicksCount not rendering on all sections of a logarithmic axis
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
: 1532 (view as bug list)
Depends on: 1387
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-09 12:54 EST by christopher ireland
Modified: 2017-06-21 04:09 EDT (History)
2 users (show)

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 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