help,
Posted: Wed Apr 08, 2009 4:05 am
application no answer when the line have 2 point
- TeeChart for .NET V3.2.2980.19082
- vs2005
- code :
public partial class Form1 : Form
{
private DataTable _Data;
public Form1()
{
InitializeComponent();
_Data = new DataTable();
_Data.Columns.Add("I", typeof(int));
_Data.Columns.Add("f1", typeof(double)); //多头价格
fastLine1.XValues.DataMember = "I";
fastLine1.YValues.DataMember = "f1";
fastLine1.DataSource = _Data;
}
private void simpleButton1_Click(object sender, EventArgs e)
{
_Data.Rows.Clear();
int ii = 2; //ii=2 bug, but other ok
for (int i = 0; i < ii; i++)
{
_Data.Rows.Add(i, Math.Sin((double)i/10) );
}
_Data.AcceptChanges();
fastLine1.CheckDataSource();
}
}
- TeeChart for .NET V3.2.2980.19082
- vs2005
- code :
public partial class Form1 : Form
{
private DataTable _Data;
public Form1()
{
InitializeComponent();
_Data = new DataTable();
_Data.Columns.Add("I", typeof(int));
_Data.Columns.Add("f1", typeof(double)); //多头价格
fastLine1.XValues.DataMember = "I";
fastLine1.YValues.DataMember = "f1";
fastLine1.DataSource = _Data;
}
private void simpleButton1_Click(object sender, EventArgs e)
{
_Data.Rows.Clear();
int ii = 2; //ii=2 bug, but other ok
for (int i = 0; i < ii; i++)
{
_Data.Rows.Add(i, Math.Sin((double)i/10) );
}
_Data.AcceptChanges();
fastLine1.CheckDataSource();
}
}