Jump to content
Software FX Community

3d Charts


tlewi

Recommended Posts

Hi,

 

Please note that while Chart FX does include a Surface gallery, it does not support a real z axis. When working in surface,both the  Z and X axes behave basically  categorical axes that plot against the index of the series and point respectively. In other words, when you pass a point to the chart as follows:

chart1.Data[series,point]=value

series is the value on Z, point is the value on X and value is the actual Y value to plot.

To get more details on how Surface works. I recommend going over the "Surface and Contour" page in the Samples and Resource Center under "Programmers Guide > Gallery Types > Surface and Contour".

Additionally, you can plot this code in your app to get a quick surface chart going:

int

i, j;chart1.Gallery = ChartFX.WinForms.Gallery.Surface;

chart1.Data.Series = 20;

chart1.Data.Points = 20;

((ChartFX.WinForms.Galleries.Surface)(this.chart1.GalleryAttributes)).ShowContourLines = true;

this.chart1.Location = new System.Drawing.Point(29, 27);this.chart1.View3D.Enabled = true;

this.chart1.View3D.Rotated = true;chart1.LegendBox.Visible = false;for (i = 0; i < 20; i++)

{

chart1.View3D.Depth = 100;

chart1.Series.Text = i.ToString();

for (j = 0; j < 20; j++)

chart1.Data[i, j] = (System.

Math.Sin((i * 2 * 3.1416) / 19) * System.Math.Cos(((j + 5) * 2 * 3.1416) / 19)) * 100;

}

Hope this helps. 

TT

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...