TBarSeries Date/Time axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Matias Nabarro
Newbie
Newbie
Posts: 9
Joined: Mon Apr 07, 2014 12:00 am

TBarSeries Date/Time axis

Post by Matias Nabarro » Fri Nov 07, 2014 3:31 pm

Hi. I'm working with last version of Pro VCL chart.

In a chart with several stacked bar series (created by code)

Code: Select all

BSeriePCR :=TBarSeries.Create(Chart_CADO);
ChartCADO.AddSeries(BSeriePCR);
BSeriePCR.Multibar :=mbStacked;
BseriePCR.Color :=clPCR;
BSeriePCR.Marks.Visible :=false;
I can't find a way to set [by code ]LeftAxis to be a DateTime axis with 'nn:ss' value.

The only way I can draw the chart the way I need it is, creating in design time one pair of stacked TBarSeries and set in the designer, the left axis to be DateTime.

The problem is that I need to clear all data from the chart before creating an filling the series. Is there any way to set the left axis "DateTime" property I see in design time ?.

Best regards.

Matias.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TBarSeries Date/Time axis

Post by Narcís » Fri Nov 07, 2014 3:43 pm

Hi Matias,

Sure, you can do:

Code: Select all

  Series1.YValues.DateTime:=True;
  Series1.GetVertAxis.DateTimeFormat:='nn:ss';
Best Regards,
Narcís Calvet / 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

Matias Nabarro
Newbie
Newbie
Posts: 9
Joined: Mon Apr 07, 2014 12:00 am

Re: TBarSeries Date/Time axis

Post by Matias Nabarro » Mon Nov 10, 2014 1:31 pm

Thanks Narcís, it was what I needed.

Best regards.

Post Reply