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 - Series can not be populated from a DataSource
Summary: Series can not be populated from a DataSource
Status: CONFIRMED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: iOS (show other bugs)
Version: unspecified
Hardware: PC Windows
: High enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 05:52 EDT by narcís calvet
Modified: 2015-08-11 05:52 EDT (History)
1 user (show)

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


Attachments
Project demonstrating the issue. (5.59 KB, application/x-zip-compressed)
2015-08-11 05:52 EDT, narcís calvet
Details

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