Page 1 of 1

Contour Series

Posted: Wed May 18, 2011 1:09 am
by 16658762
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!

Re: Contour Series

Posted: Fri May 20, 2011 9:45 am
by 16658762
Anyone could help me?

Re: Contour Series

Posted: Fri May 20, 2011 1:00 pm
by narcis
Hello leihj,

We are currently investigating the issue and will get back to you as soon as we have some news.

Re: Contour Series

Posted: Fri May 20, 2011 2:31 pm
by narcis
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;
        }