Contour Series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
leihj
Newbie
Newbie
Posts: 7
Joined: Mon Mar 14, 2011 12:00 am
Contact:

Contour Series

Post by leihj » Wed May 18, 2011 1:09 am

Hello,
I create a Contour Series with my data,but there's no chart shown. Is there anything wrong in my project? The attachment is my application.
Thanks!
Attachments
teeChartDemo.rar
(24.43 KiB) Downloaded 513 times

leihj
Newbie
Newbie
Posts: 7
Joined: Mon Mar 14, 2011 12:00 am
Contact:

Re: Contour Series

Post by leihj » Fri May 20, 2011 9:45 am

Anyone could help me?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Contour Series

Post by Narcís » Fri May 20, 2011 1:00 pm

Hello leihj,

We are currently investigating the issue and will get back to you as soon as we have some news.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Contour Series

Post by Narcís » Fri May 20, 2011 2:31 pm

Hello leihj,

Such series styles need to be populated as I explained here. I'm afraid your data is too much irregular to form a drawable structure. It works fine for me here using dataset2.xls, which I attach, and this code:

Code: Select all

        private void Form1_Load(object sender, EventArgs e)
        {
          string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/temp/teeChartDemo/teeChartDemo/dataset2.xls;" + "Extended Properties='Excel 8.0'";
            DataSet ds = new DataSet();
            OleDbDataAdapter oada = new OleDbDataAdapter("select * from [Sheet1$]", strConn);
            oada.Fill(ds);

            Contour contour1 = new Steema.TeeChart.Styles.Contour();
            tChart1.Series.Add(contour1);

            contour1.DataSource = ds.Tables[0];
            contour1.XValues.DataMember = "X";//SPEED";
            contour1.YValues.DataMember = "Y";//BMEP";
            contour1.ZValues.DataMember = "Z";//P";

            tChart1.Aspect.View3D = false;
        }
Attachments
dataset2.zip
(5.14 KiB) Downloaded 524 times
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply