Recent

Author Topic: Axis Ranges  (Read 593 times)

kapibara

  • Hero Member
  • *****
  • Posts: 629
Axis Ranges
« on: September 27, 2024, 06:06:26 am »
For the Multiple Panes example, we wrote in the wiki that either one of Axis.Range or Axis.Marks.Range is sufficient for displaying the side axismarks of each pane correctly. However, it seems both are needed to be set? Run the demo and unselect Axis.Range or Axis.Marks.Range and you'll see what I mean. Am I missing something?

Also, using a ListChartSource with real data instead of RandomChartSource seems to mess up one of the two left axises, see pic below. Select "real data" in the demo and the upper pane will have such overlapping marks.

https://wiki.freepascal.org/TAChart_Tutorial:_Multiple_Panes_in_one_Chart#Set_the_axis_range
« Last Edit: September 27, 2024, 07:45:52 am by kapibara »
Lazarus trunk / fpc 3.2.2 / Kubuntu 22.04 - 64 bit

wp

  • Hero Member
  • *****
  • Posts: 12523
Re: Axis Ranges
« Reply #1 on: September 27, 2024, 11:05:50 am »
There is also a TChartAxis.Marks.AtDataOnly. When this is set to true for both y axes the reported issues go away. Added this to the wiki.

Don't know why the Chart.Extent is switched to be fixed in the tutorial (I did not write that...)
« Last Edit: September 27, 2024, 11:15:10 am by wp »

kapibara

  • Hero Member
  • *****
  • Posts: 629
Re: Axis Ranges
« Reply #2 on: September 30, 2024, 06:26:34 am »
Thanks wp, it worked.

Good to know that Chart.Extent is not needed for paned charts to work.
« Last Edit: October 05, 2024, 10:21:32 pm by kapibara »
Lazarus trunk / fpc 3.2.2 / Kubuntu 22.04 - 64 bit

 

TinyPortal © 2005-2018