Bug in ScrollPager tool when switching series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Technicon
Newbie
Newbie
Posts: 43
Joined: Thu Aug 11, 2016 12:00 am
Contact:

Bug in ScrollPager tool when switching series

Post by Technicon » Wed Sep 07, 2016 8:33 am

Hi,

I have TeeChart version TeeChartPro 2016.18.
Steps to reproduce:
1) Add 3 line series to the chart.
2) Add ScrollPager on that chart
3) Try to switch ScrollPager series from 1st to 3th serie
In the underlying sub-chart the previous selected serie are not removed. So when one switch from serie1 to serie2 the are always 2 series in sub-chart.

Series (none) is selected
1.png
1.png (59.87 KiB) Viewed 6982 times
Switch to "Wykres 1"
2.png
2.png (66.88 KiB) Viewed 6979 times
Switch to "Wykres 2"
3.png
3.png (70.55 KiB) Viewed 6978 times
"Wykres 1" are not deleted from sub-chart.

Best Regards,
Grzegorz

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

Re: Bug in ScrollPager tool when switching series

Post by Yeray » Wed Sep 07, 2016 11:01 am

Hello Grzegorz,

I could reproduce the problem and I also fixed it for the next maintenance release:
http://bugs.teechart.net/show_bug.cgi?id=1623

Thanks for reporting it.

If you have the TeeChart sources the change is simple:
At TeeScrollPagerTool.pas, in the TScrollPagerTool.SetSeries method change this:

Code: Select all

    while t<SubChartTChart.SeriesCount-1 do
for this:

Code: Select all

    while t<SubChartTChart.SeriesCount do
I also fixed another problem to make the color of the series in the ScrollPagerTool to match the color of the series they come from. The fix for this is also at TeeScrollPagerTool.pas, at the end of the CopySeries method change this:

Code: Select all

    s.ParentChart:=SubChartTChart;
  end;
for this:

Code: Select all

    s.ParentChart:=SubChartTChart;
    s.Color:=Value.Color;
  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

Technicon
Newbie
Newbie
Posts: 43
Joined: Thu Aug 11, 2016 12:00 am
Contact:

Re: Bug in ScrollPager tool when switching series

Post by Technicon » Fri Nov 04, 2016 9:52 am

Hi,

I try version 2016.19 but this bug still exists despite that in bug tracker stays that it's fixed.

Regards,
Grzegorz

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

Re: Bug in ScrollPager tool when switching series

Post by Yeray » Fri Nov 04, 2016 10:39 am

Hi Grzegorz,

There was a problem in the v2016.19 SourceCode installer we published. Please try downloading it again.
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