Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1220

Summary: AddRealTime doesn't draw the new values
Product: ActiveX TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: pep
Priority: Normal    
Version: TeeChart Pro Activex Control v2015 v2015.0.0.0 Release   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=1&t=15599
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: VCL project where the same code works fine

Description yeray alonso 2015-06-01 11:29:05 EDT
Created attachment 455 [details]
VCL project where the same code works fine

Place a Timer and a TChart on a form.
Calling AddRealTime from the timer drew the values as they arrived until v2014.0.0.2, but not from v2014.0.0.3.

Dim m_nCount As Integer

Private Sub Form_Load()
  Caption = TChart1.Version
  TChart1.Aspect.View3D = False
  
  TChart1.AddSeries scFastLine
  TChart1.Axis.Left.SetMinMax -1, 1
  TChart1.Axis.Bottom.SetMinMax 0, 10
  
  m_nCount = 0
  
  Timer1.Interval = 30
  Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
  TChart1.Series(0).asFastLine.AddRealTime m_nCount / 30, Sin(m_nCount) / 30 * 3.14
  
  m_nCount = m_nCount + 1
End Sub

I've also tried the same in VCL. It works fine with the actual code (VCL project attached).
Comment 1 pep jorge 2015-09-18 05:43:45 EDT
Fixed for the next maintenance v2015.0.0.3