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
TeeChart with iPaq (Mobile Device)??
Hi Mattias,
have you tried to use similar code as in the Tutorials :
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;
}
Pep Jorge
http://support.steema.com
http://support.steema.com
Tried that without luck!.....
I have sent the testproject to you for verification..
Quick answer is much appreciated.
Kindly,
Mattias
Quick answer is much appreciated.
Kindly,
Mattias
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
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!
I'm afraid Pep is now on holiday; could you please repost your example to:
news://www.berneda.com/steema.public.attachments ?
Many thanks!
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/