Side All, Labels on Axis X

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SSchmahl
Newbie
Newbie
Posts: 7
Joined: Mon Jun 29, 2009 12:00 am

Side All, Labels on Axis X

Post by SSchmahl » Tue Jun 08, 2010 6:15 am

I try to represent few series in MultipleBar = SideAll.
Unfortunatelly I see the problem I've presented on attached screenshot.

What can I do to show labels on axis X for every serie?
I didn't found any info about it here.

Thanks.
Attachments
Diagramm_SideAll.png
Diagramm_SideAll.png (26.76 KiB) Viewed 8468 times
Delphi 2009, TeeChart Pro 8.07

SSchmahl
Newbie
Newbie
Posts: 7
Joined: Mon Jun 29, 2009 12:00 am

Re: Side All, Labels on Axis X

Post by SSchmahl » Tue Jun 08, 2010 6:18 am

I use Delphi 2009 and TeeChart Pro 8.06, I have tried it in 8.07 also...
Delphi 2009, TeeChart Pro 8.07

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

Re: Side All, Labels on Axis X

Post by Yeray » Tue Jun 08, 2010 10:32 am

Hi SSchmahl,

We would need some extra information to reproduce the problem here:
- How many TBarSeries do you have?
- How are you adding all the series values and labels?
- Are you setting any particular bottom axis LabelStyle?
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

SSchmahl
Newbie
Newbie
Posts: 7
Joined: Mon Jun 29, 2009 12:00 am

Re: Side All, Labels on Axis X

Post by SSchmahl » Thu Jun 10, 2010 9:44 am

Hi Yeray,

There are three (3) series. I've created a Dataset for test purpose and all of these series use the DataSet.

DataSet has fields DateName, Value.

I've configured every Serie to use DateName for Labels, Value for Bar.

Styles for Bottom Axis :
Labels : Visible, Round First, Label on Axis, Angle=90, Style=Auto
All other Values - by default.
Delphi 2009, TeeChart Pro 8.07

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

Re: Side All, Labels on Axis X

Post by Yeray » Fri Jun 11, 2010 10:58 am

Hi SSchmahl,

Could you please send us a simple example project we can run as-is to reproduce the problem here?

Thanks in advance.
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

SSchmahl
Newbie
Newbie
Posts: 7
Joined: Mon Jun 29, 2009 12:00 am

Re: Side All, Labels on Axis X

Post by SSchmahl » Mon Jun 14, 2010 7:15 am

Hi,

look in attachment.
You'll need JCL Memory DataSet to compile this project. You have to compile and start program, there is nothing to see in design-time.


The Diagram is cut from our real project.

I couldn't attach compiled program due to size restriction.

Thanks.
Delphi 2009, TeeChart Pro 8.07

SSchmahl
Newbie
Newbie
Posts: 7
Joined: Mon Jun 29, 2009 12:00 am

Re: Side All, Labels on Axis X

Post by SSchmahl » Mon Jun 14, 2010 7:16 am

I forgott to attach a file, sorry.
Attachments
Chart.zip
(6.23 KiB) Downloaded 366 times
Delphi 2009, TeeChart Pro 8.07

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

Re: Side All, Labels on Axis X

Post by Yeray » Tue Jun 15, 2010 10:50 am

Hi SSchmahl,
SSchmahl wrote:You'll need JCL Memory DataSet to compile this project
Please try to send us a simple example that doesn't need any additional component, only the components that come with the IDE.
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

SSchmahl
Newbie
Newbie
Posts: 7
Joined: Mon Jun 29, 2009 12:00 am

Re: Side All, Labels on Axis X

Post by SSchmahl » Tue Jun 15, 2010 11:32 am

OK, here is example with TCLientDataSet.
Attachments
Chart.zip
(7.58 KiB) Downloaded 391 times
Delphi 2009, TeeChart Pro 8.07

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

Re: Side All, Labels on Axis X

Post by Yeray » Tue Jun 15, 2010 3:30 pm

Hi SSchmahl,

Having several bar series, by default, the first series' labels are drawn in the bottom axis. But when you have MultiBar=mbSideAll, certainly it would be nice if all the series' labels could be drawn in the bottom axis without any intervention, so I've added it to the wish list to be implemented in future releases (TV52014973).

In the meanwhile you could use custom labels as follows:

Code: Select all

  tmpPos:=0;
  DBChart.Axes.Bottom.Items.Clear;
  for i:=0 to DBChart.SeriesCount-1 do
  begin
    for j:=0 to DBChart[i].Count-1 do
    begin
      DBChart.Axes.Bottom.Items.Add(tmpPos,DBChart[i].Labels.Labels[j]);
      Inc(tmpPos);
    end;
  end;
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

SSchmahl
Newbie
Newbie
Posts: 7
Joined: Mon Jun 29, 2009 12:00 am

Re: Side All, Labels on Axis X

Post by SSchmahl » Wed Jun 16, 2010 10:21 am

Hi,
thanks, it works...

Where could I see this wish list and what can I use this number (TV52014973) for?

Thanks a lot anyway. :)
Delphi 2009, TeeChart Pro 8.07

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

Re: Side All, Labels on Axis X

Post by Yeray » Wed Jun 16, 2010 1:49 pm

Hi SSchmahl,
SSchmahl wrote:thanks, it works...
I'm happy to hear that!
SSchmahl wrote:Where could I see this wish list and what can I use this number (TV52014973) for?
I'm afraid there isn't a public issue tracking system where you can see the status of the tickets. We use these numbers to identify the bugs, feature requests, and enhancements in our internal database and we use to tell them to the customers interested so that they will be able to find them in the release notes.

So I recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements and what's implemented on them.
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

Post Reply