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 - AddRealTime doesn't draw the new values
Summary: AddRealTime doesn't draw the new values
Status: RESOLVED FIXED
Alias: None
Product: ActiveX TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: TeeChart Pro Activex Control v2015 v2015.0.0.0 Release
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-01 11:29 EDT by yeray alonso
Modified: 2015-09-18 05:43 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
VCL project where the same code works fine (2.11 KB, application/x-zip-compressed)
2015-06-01 11:29 EDT, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
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