Incorrect legend (pie chart) if group slice is active

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
NatSam
Newbie
Newbie
Posts: 13
Joined: Fri Dec 09, 2016 12:00 am

Incorrect legend (pie chart) if group slice is active

Post by NatSam » Fri Jan 13, 2017 5:11 pm

The pie chart legeng are not being displayed correctly if "group < %" is active.

Sometimes the slice mark is also not shown.

See attached project and printscreens.

Teechart Pro version: v2016.19.161025 32 bit VCL
Rad Studio XE7 version: 21.0.17707.5020

Samuel
Attachments
Pie group.zip
Sample application and printscreen
(122.81 KiB) Downloaded 910 times

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Incorrect legend (pie chart) if group slice is active

Post by Marc » Mon Jan 16, 2017 9:10 am

Hello Samuel,

Thanks for the error report. It is reproducible and has been assigned as a bug: http://bugs.teechart.net/show_bug.cgi?id=1749.

We'll get on and fix it.

Regards,
Marc Meumann
Steema Support

NatSam
Newbie
Newbie
Posts: 13
Joined: Fri Dec 09, 2016 12:00 am

Re: Incorrect legend (pie chart) if group slice is active

Post by NatSam » Mon Jan 16, 2017 11:30 am

Hi Marc,

This issue occurs only in Teechart 2016.19.

I tested with the 2016.18 version and in this version the legend is mounted correctly.

I need to send a fix to this problem to my customers until the end of this week, so, I like to know if the fix to this bug will be released quickly or I should downgrade to the 2016.18 release.

Thank you.

Samuel

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Incorrect legend (pie chart) if group slice is active

Post by Marc » Mon Jan 16, 2017 12:22 pm

Hello Samuel,

The problem is caused by a modification between release .18 and .19 to resolve a mouseover return value over ContourSeries. If you're compiling from sourcecode you can use the modification described below directly. If you are also using ContourSeries you should take a view in whether to apply this fix now or wait until we have made further updates.

in Teengine.pas (& VCLTee.Teengine.pas)

Method:
Function TChartSeries.LegendString( LegendIndex:Integer;
LegendTextStyle:TLegendTextStyle ):String;

On the first active line of the method, change:

Code: Select all

  ValueIndex:=CalcLegendIndex(LegendIndex);

for:

Code: Select all

  ValueIndex:=LegendToValueIndex(LegendIndex);
We'll make the required changes so that issues are resolved in both Series (Pie and Contour) in time for the next update release.

Regards,
Marc
Steema Support

NatSam
Newbie
Newbie
Posts: 13
Joined: Fri Dec 09, 2016 12:00 am

Re: Incorrect legend (pie chart) if group slice is active

Post by NatSam » Mon Jan 16, 2017 1:42 pm

This modification solved the problem. :D

Thank you.

realsol
Newbie
Newbie
Posts: 70
Joined: Mon Feb 27, 2017 12:00 am

Re: Incorrect legend (pie chart) if group slice is active

Post by realsol » Sun Mar 05, 2017 3:49 am

I just started using TeeChart Standard this last week. I'm glad I found the answer. Unfortunately, this chart and legend are why I purchased the Standard so I could hook to my Dataset and minimize the slices by using the Group Slice. But, as mentioned, the Legend is off. I was hoping to release this chart next week. I didn't purchase the source code (since my chart usage was so limited in this project), so I can't just fix it myself.

Are there some nightly builds or early releases that have this problem fixed, or do I need to downgrade to .18 to get my legend to match my Pie Chart?

If I need to downgrade to .18, should I uninstall .19 first? My real problem was getting FastReports working with the Std version since they integrate it in their product. I'm hoping the changes they helped me with won't break down if I have to downgrade. Thus the questions, do you have any release that is not yet public that fixes this problem for folks who don't have the source code?

realsol
Newbie
Newbie
Posts: 70
Joined: Mon Feb 27, 2017 12:00 am

Re: Incorrect legend (pie chart) if group slice is active

Post by realsol » Sun Mar 05, 2017 3:56 am

Couldn't see how to edit my last post, but I did want to mention that I am using the FMX version of TeeChart. I didn't notice this was the VCL forum when I replied. Found this post by Googling it. I assume the error I am getting in FMX is the same as with the VCL

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

Re: Incorrect legend (pie chart) if group slice is active

Post by Yeray » Tue Mar 07, 2017 9:40 am

Hello,

I'm afraid we don't have nightly builds.
We are working on the installers for the next maintenance release, so they should be published shortly.

As you say, you can always go to the previous v2016.18, by uninstalling v2016.19 and installing v2016.18 (and verifying the paths).
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

realsol
Newbie
Newbie
Posts: 70
Joined: Mon Feb 27, 2017 12:00 am

Re: Incorrect legend (pie chart) if group slice is active

Post by realsol » Thu Mar 09, 2017 7:55 am

As you say, you can always go to the previous v2016.18, by uninstalling v2016.19 and installing v2016.18 (and verifying the paths)
I am running Delphi Berlin 1.1 Update 2. Does v2016.18 support this version? Also, do you have a revision page that shows the difference between the two versions?

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

Re: Incorrect legend (pie chart) if group slice is active

Post by Yeray » Thu Mar 09, 2017 12:48 pm

Hello,
realsol wrote:I am running Delphi Berlin 1.1 Update 2. Does v2016.18 support this version?
As you can see in the public release notes, the first version to support Berlin was v2016.17.
realsol wrote:Also, do you have a revision page that shows the difference between the two versions?
In the release notes you can find a link to the list of tickets in the public tracker closed for each release.
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