[SOLVED] FMX Gantt chart - horizontal ScrollPager tool

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
AvA
Newbie
Newbie
Posts: 2
Joined: Mon Jul 19, 2021 12:00 am

[SOLVED] FMX Gantt chart - horizontal ScrollPager tool

Post by AvA » Fri Aug 06, 2021 11:55 am

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)
Attachments
bds_zrqbnQVtbe.jpg
bds_zrqbnQVtbe.jpg (47.51 KiB) Viewed 18782 times
WINWORD_aln9rV7gdl.jpg
WINWORD_aln9rV7gdl.jpg (62.56 KiB) Viewed 18782 times
Last edited by AvA on Thu Aug 12, 2021 8:44 am, edited 1 time in total.

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: FMX Gantt chart - horizontal ScrollPager tool

Post by Yeray » Tue Aug 10, 2021 12:49 pm

Hello,

Try adding this after your code:

Code: Select all

  Series1.YMandatory:=True;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

AvA
Newbie
Newbie
Posts: 2
Joined: Mon Jul 19, 2021 12:00 am

Re: FMX Gantt chart - horizontal ScrollPager tool

Post by AvA » Thu Aug 12, 2021 7:53 am

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

Marc
Site Admin
Site Admin
Posts: 1209
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

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

Post by Marc » Fri Aug 20, 2021 2:54 pm

Hello,

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

Regards,
Marc Meumann
Steema Support

Post Reply