Labels issue with 2 series

TeeChart for ActiveX, COM and ASP
Post Reply
Petar
Newbie
Newbie
Posts: 40
Joined: Tue Oct 06, 2009 12:00 am

Labels issue with 2 series

Post by Petar » Tue Dec 07, 2010 3:28 pm

Hi,

I would like to chart 2 series with .XValues.DateTime = False . 1st one charted on form load and 2nd one on button click.
2nd serie is larger then 1st serie. In this case I have the issue listed below.
LabelsTwoGraphs.png
LabelsTwoGraphs.png (34.03 KiB) Viewed 14076 times
Example code

Code: Select all

Option Explicit

Private Sub Command1_Click()
        TChart1.AddSeries (scFastLine)
        TChart1.Series(1).asFastLine.TreatNulls = tnSkip
        TChart1.Series(1).XValues.DateTime = False
        
        Dim i As Integer
        Dim value As Double
        value = 45
        For i = 1 To 720
            
            value = value + 0.03 * (Math.Rnd() - Math.Rnd())
            TChart1.Series(1).AddXY i, value, Format(Now - 720 + i, "dd/mm/yy"), clTeeColor
        Next i
End Sub

    Private Sub Form_Load()
        TChart1.Aspect.View3D = False
        TChart1.Axis.Bottom.Labels.DateTimeFormat = "dd/mm/yy"
        TChart1.AddSeries (scFastLine)
        TChart1.Series(0).asFastLine.TreatNulls = tnSkip
        TChart1.Series(0).XValues.DateTime = False
        
        Dim i As Integer
        Dim value As Double
        value = 45
        For i = 300 To 720
            
            value = value + 0.03 * (Math.Rnd() - Math.Rnd())
            TChart1.Series(0).AddXY i, value, Format(Now - 365 + i, "dd/mm/yy"), clTeeColor
        Next i
       
    End Sub

Have you any idea how can I correct this.

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

Re: Labels issue with 2 series

Post by Yeray » Thu Dec 09, 2010 3:48 pm

Hi Petar,

I think this is the same problem that was identified here.
So when TV52015179 will be fixed in VCL, it should become fixed in ActiveX too because TeeChart AX is a wrapper from TeeChart VCL.
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

Petar
Newbie
Newbie
Posts: 40
Joined: Tue Oct 06, 2009 12:00 am

Re: Labels issue with 2 series

Post by Petar » Fri Dec 10, 2010 9:22 am

Hi Yeray,

in fact that seems to be the same problem, but issue was reported 1month and half ago, do you have any idea, when it should be fixed?

Thanks,

Petar

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

Re: Labels issue with 2 series

Post by Yeray » Fri Dec 10, 2010 2:25 pm

Hi Petar,

I'm afraid not. As Narcís said in the link above,
Narcís wrote:This is a high-priority issue in the defect list but hasn't been fixed yet. At this stage I can't commit to a release date. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's fixed on them.
But we could be near to a solution as you can see here
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

guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

Re: Labels issue with 2 series

Post by guilz2010 » Mon Dec 13, 2010 8:01 am

Hi Steema Support Team,

This issue is Very Critical for us (and our clients) - Could you please fix it and release it quickly ?

Thanks a lot

Guilz

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

Re: Labels issue with 2 series

Post by Yeray » Wed Dec 15, 2010 10:45 am

Hi Guilz,

We understand it and that's why we've given high priority to it. Please, stay tuned.
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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Labels issue with 2 series

Post by Narcís » Mon Jan 17, 2011 3:42 pm

Hello everyone,

Just wanted to let you know that TV52015179 has been fixed for the next maintenance release.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

Re: Labels issue with 2 series

Post by guilz2010 » Mon Nov 07, 2011 12:54 pm

Hi,

with Teechart v2011 we still have this bug
bug_chart.jpg
bug_chart.jpg (72.34 KiB) Viewed 13802 times
As you can see, we have 2 series (1 as fast line - Serie1, 1 as Gantt - Serie 2) the issue is that Gantt label are displayed on the bottom axis and we can't see the date labels of serie 1

We do not want to view Gantt labels on bottom axis but we want view them on Gantt chart (Months FEB11, MAR11, APR11, MAY11, JUN11 must be displayed on gantt chart but not on bottom axis where there is already date labels of serie 1

Thank you for your help

Guilz

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

Re: Labels issue with 2 series

Post by Yeray » Tue Nov 08, 2011 12:14 pm

Hello,

I've verified with v2010.0.0.1 this reproduced the problem but not now with v2011.0.0.4:

Code: Select all

Private Sub Form_Load()  
  TChart1.Aspect.View3D = False
  
  Dim i, j As Integer
  Dim cxdate As Date
  
  For i = 0 To 1
    TChart1.AddSeries scFastLine

    cxdate = Date
    For j = 0 To 49
      TChart1.Series(i).Add Rnd(100), FormatDateTime(cxdate), clTeeColor
      cxdate = cxdate + 31
    Next j
  Next i
End Sub
However, the code from Petar, in the beginning of this thread still reproduces the overlapping problem:

Code: Select all

Private Sub Form_Load()  
  Dim i As Integer
  Dim value As Double
  
  TChart1.Aspect.View3D = False
  TChart1.Axis.Bottom.Labels.DateTimeFormat = "dd/mm/yy"
  
  TChart1.AddSeries (scFastLine)
  TChart1.Series(0).asFastLine.TreatNulls = tnSkip
  TChart1.Series(0).XValues.DateTime = False
  
  value = 45
  For i = 300 To 720
    value = value + 0.03 * (Math.Rnd() - Math.Rnd())
    TChart1.Series(0).AddXY i, value, Format(Now - 365 + i, "dd/mm/yy"), clTeeColor
  Next i
        
  TChart1.AddSeries (scFastLine)
  TChart1.Series(1).asFastLine.TreatNulls = tnSkip
  TChart1.Series(1).XValues.DateTime = False

  value = 45
  For i = 1 To 720
    value = value + 0.03 * (Math.Rnd() - Math.Rnd())
    TChart1.Series(1).AddXY i, value, Format(Now - 720 + i, "dd/mm/yy"), clTeeColor
  Next i
End Sub
So this could be an slightly different problem than TV52015179.
I've opened a new VCL bug ticket with the code above translated to Delphi, that reproduces the problem for me here with the actual sources (TV52015820).
Excuse us for the confusion generated.
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