TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
awata
- Newbie
- Posts: 2
- Joined: Wed May 23, 2007 12:00 am
-
Contact:
Post
by awata » Thu Dec 04, 2008 6:58 am
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
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Thu Dec 04, 2008 9:23 am
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