How to display colored bars for FMX Area/Stairs 2D

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
OCEAbct
Newbie
Newbie
Posts: 1
Joined: Thu Oct 09, 2014 12:00 am

How to display colored bars for FMX Area/Stairs 2D

Post by OCEAbct » Fri Jan 23, 2015 3:50 pm

Hi,

I need to display an Area/Stairs chart in 2D (FMX project)

The issue is that I cannot have colored bars (only lines) in 2D :

Image

Colored bars are only available for 3D :

Image

Is it normal? Is there anyway to have a 2D one with colored bars (as it is perfect in VCL version!!!) ?

Thanks in advance.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: How to display colored bars for FMX Area/Stairs 2D

Post by Sandra » Fri Jan 23, 2015 5:17 pm

Hello OCEabct,

The problem you are experiencing is already added in TeeChart FireMonkey tracker as we told you by email. Here's you have the link: http://bugs.teechart.net/show_bug.cgi?id=1101. Remember add your email to the tickets so you can be automatically notified when an update arrives.
Meantime, I would like suggest some workarounds for the problem you are experiencing.
You can implement and configure properties of TAreaSeries by code to prevent the 3D view problem as do in code below:

Code: Select all

{$R *.fmx}
uses FMXTee.Series,  FMXTee.Functions.Stats;
var Series1:TAreaSeries;
procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D := false;
  Series1 := TAreaSeries.Create(Self);
  Chart1.AddSeries(Series1);
  Series1.FillSampleValues(10);
  Series1.Stairs := True;
end;
An alternative is add the TAreaSeries in design time in 3D view in Gallery editor and change the 3D view in 3D editor. The image below shows you how:
Change3Dview.jpg
Change3Dview.jpg (262.74 KiB) Viewed 7463 times
Hoping it will help.
Thanks in advance,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply