TeeChart with iPaq (Mobile Device)??

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MattiasL
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am
Location: Stockholm
Contact:

TeeChart with iPaq (Mobile Device)??

Post by MattiasL » Wed Aug 11, 2004 6:15 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Aug 12, 2004 10:56 am

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;         
}        

MattiasL
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am
Location: Stockholm
Contact:

Tried that without luck!.....

Post by MattiasL » Thu Aug 12, 2004 2:23 pm

I have sent the testproject to you for verification..

Quick answer is much appreciated.

Kindly,
Mattias

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Aug 16, 2004 11:15 am

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!
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/

Post Reply