Page 1 of 1

3D Waterfall chart

Posted: Thu Dec 04, 2008 6:58 am
by 13045144
I want to draw 3D Waterfall chart. In case of using float type in data x, some data is omitted. Why is this happen?
I use the code as bellow.

Code: Select all

private void Form1_Load(object sender, EventArgs e)
{
    Steema.TeeChart.Styles.Waterfall waterfall1 = new Waterfall(tChart1.Chart);

    for (float i = 0; i < 20; i++)
    {
        waterfall1.Add(i * 1.25, i * 1.25, 1);

    }
}
teechart version:3.5.3187.15584

Posted: Thu Dec 04, 2008 9:23 am
by 10050769
Hi awata!

You need populate such explain in this link: http://www.teechart.net/support/viewtopic.php?t=5312

For populate chart such explain in the link, you need next code:

Code: Select all

private void Form1_Load(object sender, EventArgs e)
        {
            
         Waterfall waterfall1 = new Waterfall(tChart1.Chart);
         waterfall1.IrregularGrid = true;
       
                for (float i=0; i < 20; i++)
                {
                    for (float j = 0; j <10; j++)
                    {
                        waterfall1.Add(i* 1.25, i *1.25, j);

                    }
                
                } 
        }


Best Regards
Sandra


Steema Support Central
http://support.steema.com