Hi!
I'm using TeeChart 8.04 and ReportBuilder 11.
I'm trying the DBChart component for ReportBuilder.
I have designed a SQL report (you can see the SQL statement and the query result here ).
Although I set the result order via SQL, the Chart bars are always shown with a different order (see image 2 here: )
How can I change the order of the bars to respect the original one?
Thanks!
Bars order in DBChart and ReportBuilder
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hello santycg,
You may need to set bar series YValues order to none and XValues order to be ascending before populating them, for example
This is how series are set by default but TeeChart's ReportBuilder wrapper or something else in the project can be changing this.
If this doesn't work you can try running code below after populating series.
Hope this helps!
You may need to set bar series YValues order to none and XValues order to be ascending before populating them, for example
Code: Select all
Series1.XValues.Order:=loAscending;
Series1.YValues.Order:=loNone;
//Populate your series here
If this doesn't work you can try running code below after populating series.
Code: Select all
Series1.XValues.Sort
Series1.YValues.Sort;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi santycg,
In the chart editor only YValues order can be set. However this may be enough as your bar series seem to sort Y values descendingly.
You can set this going to Series -> General -> Sort.
In the chart editor only YValues order can be set. However this may be enough as your bar series seem to sort Y values descendingly.
You can set this going to Series -> General -> Sort.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |