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 1268

Summary: Series can not be populated from a DataSource
Product: .NET TeeChart Reporter: narcís calvet <narcis>
Component: iOSAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement CC: pep
Priority: High    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Project demonstrating the issue.

Description narcís calvet 2015-08-11 05:52:01 EDT
Created attachment 483 [details]
Project demonstrating the issue.

Attached project shows that series can not be populated from a DataSource. This works fine with WinForms and Xamarin.Android.

As a workaround, series need to be populated manually from the DataSet:

HighLow hl = new HighLow(_tChart.Chart);

DataSet ds = GetDataSet();
DataTable dt = ds.Tables[0];

for (int j = 0; j < dt.Rows.Count; j++)
{
  DataRow row = dt.Rows[j];

  hl.Add((double)row[0], (double)row[1], (double)row[2]);
}