Page 1 of 1

Issues migrating Tower-Chart from Tee v2010 to Tee v2016

Posted: Mon Dec 12, 2016 12:26 pm
by 16679289
I am currently trying to migrate a tower chart from Tee Chart Pro 2010.0.0.3 to Tee Chart Pro 2016.0.0.2. Unfortunately I am facing some problems:

With the 2010 version the chart works fine. I have 3 series (3D) and each of them starts at its own defined origin (0,7,14). Origin 0 applies to "niedrig", origin 7 applies to "mittel" and origin 14 applies to "hoch" on the left axis.
The Chart with the 2010 version looks like the attached screenshot:
teeChartTower_v2010.PNG
teeChartTower_v2010.PNG (25.57 KiB) Viewed 22348 times
After migrating the chart to the 2016 version each tower of series1 (origin 7) and series2 (origin 14) goes from its y-value to 0 instead of going from its y-value to the series' origin.
The Chart with the 2016 version looks like the attached screenshot:
teeChartTower_v2016.PNG
teeChartTower_v2016.PNG (70.07 KiB) Viewed 22343 times
teeChartTower_v2016_editor.PNG
teeChartTower_v2016_editor.PNG (13.74 KiB) Viewed 22335 times
Which setting do I have to change in order to have the chart working with the 2016 version?

Thanks in advance!

Re: Issues migrating Tower-Chart from Tee v2010 to Tee v2016

Posted: Tue Dec 13, 2016 1:00 pm
by yeray
Hello,

I reproduced the problem in TeeChart VCL (note TeeChart ActiveX is a wrapper from it) so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1718

I've also fixed so the next maintenance release should include it.

Re: Issues migrating Tower-Chart from Tee v2010 to Tee v2016

Posted: Tue Dec 13, 2016 2:41 pm
by 16679289
Thanks for your reply.

Is there already a schedule when the next maintenance release will be available for download?

Re: Issues migrating Tower-Chart from Tee v2010 to Tee v2016

Posted: Tue Dec 13, 2016 3:47 pm
by yeray
Hello,
Dominik wrote:Is there already a schedule when the next maintenance release will be available for download?
I'm afraid I can't tell you when it will be published, but we try to publish ActiveX releases quarterly.
And IO can tell you the last version before the bug was v2013.0.1.4, in case you want to upgrade your v2010 to it in the meanwhile.

Re: Issues migrating Tower-Chart from Tee v2010 to Tee v2016

Posted: Fri Feb 10, 2017 3:40 pm
by 16679289
hi Yeray,

do you already know when the next active x release fixing the above reported bug will be available for download?

best regards,
Dominik

Re: Issues migrating Tower-Chart from Tee v2010 to Tee v2016

Posted: Mon Feb 13, 2017 8:18 am
by yeray
Hello Dominik,

We try to publish TeeChart ActiveX releases quarterly. We'll try to publish the next maintenance release around the beginning of March.

Re: Issues migrating Tower-Chart from Tee v2010 to Tee v2016

Posted: Tue Mar 14, 2017 12:31 pm
by 16679289
hi Yeray,

I still have some issues migrating a tower chart from teechart v.2010 to teechart v.2017 (activeX).

I have a tower chart with 3 layers (origin 1: 0, origin 2: 100, origin 3: 200). Layers 1 and 2 are working fine so far, but layer 3 behaves strange. Maybe you can help.

Layer 3 is set to start at origin 200 which is yet working correctly. But layer 3 is - in contrast to layer 1 and 2 - extending from 200 to 300 (left axis). I really need layer 3 to have the exact same behavior as layer 1 and layer 2. What settings do I have to set?

Many thanks in advance and best regards,
Dominik

Re: Issues migrating Tower-Chart from Tee v2010 to Tee v2016

Posted: Tue Mar 14, 2017 3:08 pm
by yeray
Hello,

I could reproduce the problem so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1819

Note it's a TeeChart VCL bug that TeeChart ActiveX has inherited because the later is a wrapper of the former.
The last version not reproducing this problem is TeeChart ActiveX v2013.0.1.4

Re: Issues migrating Tower-Chart from Tee v2010 to Tee v2016

Posted: Tue Mar 14, 2017 3:12 pm
by 16679289
Hi Yeray,

is there a possible workaround to fix this bug?

I really need to have this feature working! I suspect I cannot wait for the next release...

Best regards,
Dominik

Re: Issues migrating Tower-Chart from Tee v2010 to Tee v2016

Posted: Wed Mar 15, 2017 9:14 am
by yeray
Hello Dominik,

Playing a little bit with the Origins I found a way to workaround it, at least for this situation:

Code: Select all

Private Sub Form_Load() 
  Dim i, x, z As Integer
  For i = 0 To 7
    TChart1.AddSeries scTower
    With TChart1.Series(i).asTower
      .UseOrigin = True
      If i < 2 Then
        .Origin = 100 * i
      Else
        .Origin = TChart1.Series(i - 1).asTower.Origin + (TChart1.Series(i - 1).asTower.Origin - TChart1.Series(i - 2).asTower.Origin) - 100
      End If
      
      For x = 0 To 2
        For z = 0 To 2
          .AddXYZ x, 100 * i, z, "", clTeeColor
        Next z
      Next x
    End With
  Next i
  
  TChart1.Axis.Left.SetMinMax 0, 800
End Sub