Page 1 of 1
How to display colored bars for FMX Area/Stairs 2D
Posted: Fri Jan 23, 2015 3:50 pm
by 16570395
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 :
Colored bars are only available for 3D :
Is it normal? Is there anyway to have a 2D one with colored bars (as it is perfect in VCL version!!!) ?
Thanks in advance.
Re: How to display colored bars for FMX Area/Stairs 2D
Posted: Fri Jan 23, 2015 5:17 pm
by 10050769
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 (262.74 KiB) Viewed 8522 times
Hoping it will help.
Thanks in advance,