Page 1 of 1

TeeChart with iPaq (Mobile Device)??

Posted: Wed Aug 11, 2004 6:15 pm
by 8120148
Hi,
Im trying to show a chart in a iPaq form.
Im using the following code:

tChart1=new TChart();
tChart1.Bounds=new Rectangle(6,70,220,176);
tChart1.Parent=this;

// Chart Title
tChart1.Header.Text="Försäljning/prgrupp";

// Create horizontal bar series
horizBar1=new Steema.TeeChart.Styles.HorizBar();

DataTable employeeTable = Form1.myCustStat.Tables[0];
horizBar1.YValues.DataMember = employeeTable.Columns["Gross Value"].ColumnName;
horizBar1.LabelMember = employeeTable.Columns["ProdGrp Descr"].ColumnName;
horizBar1.DataSource = employeeTable;
horizBar1.Marks.Style = Steema.TeeChart.Styles.MarksStyles.Value;
horizBar1.ColorEach=true;
tChart1.Series.Add(horizBar1);

But i cant manage to get any chart. I dont get any error but nothing shows on the chart?!?!?!?

Have i missed anything????

Kindly,
Mattias Lindström
Datema AB

Posted: Thu Aug 12, 2004 10:56 am
by Pep
Hi Mattias,

have you tried to use similar code as in the Tutorials :

Code: Select all

DataSet masterDataSet = new DataSet();
Bar bar1 = new Bar(tChart1.Chart);
try {
  OpenConnWithJet40(ref masterDataSet);
  DataTable employeeTable = masterDataSet.Tables["Employee"];             
  bar1.YValues.DataMember = employeeTable.Columns["SALARY"].ToString();
  bar1.LabelMember = employeeTable.Columns["LASTNAME"].ToString();
  bar1.DataSource = employeeTable;         
}        

Tried that without luck!.....

Posted: Thu Aug 12, 2004 2:23 pm
by 8120148
I have sent the testproject to you for verification..

Quick answer is much appreciated.

Kindly,
Mattias

Posted: Mon Aug 16, 2004 11:15 am
by Chris
Hi Mattias,

I'm afraid Pep is now on holiday; could you please repost your example to:
news://www.berneda.com/steema.public.attachments ?

Many thanks!