Page 1 of 1

Bug in ScrollPager tool when switching series

Posted: Wed Sep 07, 2016 8:33 am
by 16578912
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 7002 times
Switch to "Wykres 1"
2.png
2.png (66.88 KiB) Viewed 6999 times
Switch to "Wykres 2"
3.png
3.png (70.55 KiB) Viewed 6998 times
"Wykres 1" are not deleted from sub-chart.

Best Regards,
Grzegorz

Re: Bug in ScrollPager tool when switching series

Posted: Wed Sep 07, 2016 11:01 am
by yeray
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;

Re: Bug in ScrollPager tool when switching series

Posted: Fri Nov 04, 2016 9:52 am
by 16578912
Hi,

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

Regards,
Grzegorz

Re: Bug in ScrollPager tool when switching series

Posted: Fri Nov 04, 2016 10:39 am
by yeray
Hi Grzegorz,

There was a problem in the v2016.19 SourceCode installer we published. Please try downloading it again.