Page 1 of 1

[SOLVED] FMX Gantt chart - horizontal ScrollPager tool

Posted: Fri Aug 06, 2021 11:55 am
by 16591489
The goal is to have the ScrollPager tool for a Gantt chart at the bottom of the chart and horizontally scrolling. For line charts this seems to be the standard, but I can't figure out how to achieve the same for Gantt charts.

There is a Axis setting for the color band, but changing it to "Bottom Axis" does not have any effect. After closing and reopening the chart editor, the setting switches back to "Left Axis".

Creating the ScrollPager tool in code gives the same result (ScrollPager is always on the right):

Code: Select all

  var spt := TScrollPagerTool.Create(Self);

  spt.Series := series3;
  spt.ColorBandTool.Axis := Chart2.Axes.Bottom;

  Chart2.tools.Add(spt);
Helping words are highly appreciated.

TeeChart version: 2021.32.210430
Delphi version: 10.4.2 (with all patches)

Re: FMX Gantt chart - horizontal ScrollPager tool

Posted: Tue Aug 10, 2021 12:49 pm
by yeray
Hello,

Try adding this after your code:

Code: Select all

  Series1.YMandatory:=True;

Re: FMX Gantt chart - horizontal ScrollPager tool

Posted: Thu Aug 12, 2021 7:53 am
by 16591489
Perfect Yeray, that works. Thank you very much!

Edit: But it creates a new situation: The x- and y-axis is now swapped for the chart (but not the ScrollPager).

Re: [SOLVED] FMX Gantt chart - horizontal ScrollPager tool

Posted: Fri Aug 20, 2021 2:54 pm
by Marc
Hello,

This is not straightforward. We are checking whether it's viable to switch the Active Scroller direction for the Gantt.

Regards,
Marc Meumann