Recent

Author Topic: Left axis parametrization.  (Read 2419 times)

cliff

  • Newbie
  • Posts: 3
Left axis parametrization.
« on: April 29, 2014, 02:11:27 pm »
I'm trying to force the aspect of the left axisi.
I have a tipical scale of 0..200.
Using the parameter LeftAxis.Interval.Count, Tolerance and UseCount + othe option i can force the grid in step of 20 (0,20,40,...200).
I try varius combination, but i cannot find the exact combination to have 0,25,50, ...200, or 0,40,80,.. 200.
Can someone help me ?
Thx

wp

  • Hero Member
  • *****
  • Posts: 13336
Re: Left axis parametrization.
« Reply #1 on: April 29, 2014, 02:38:41 pm »
You are working at the right location. You should also play with MinLength and MaxLength. But I must confess that the axis labels have a life of their own. This is because the emphasis is on giving "good" labels in a general sense, also having zooming in mind, and changing chart size and data extent.

If you are sure that your charts are always the same size (no alClient!), the data minimum and maximum are always the same, and you will not zoom, you can force the axis to use the labels of your liking if you assign a ListChartSource to the Source property of the axis. The ChartSource must contain the labels to be used. See the ListChartSource tutorial for instructions (http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_ListChartSource,_Logarithmic_Axis,_Fitting#Manual_finding_of_axis_labels)

cliff

  • Newbie
  • Posts: 3
Re: Left axis parametrization.
« Reply #2 on: April 29, 2014, 03:00:01 pm »
Perfect, it's exactly wath i'm searching.
THX a lot !

 

TinyPortal © 2005-2018