tlewi Posted September 4, 2008 Report Share Posted September 4, 2008 Can ChartFX do 3d surface graphs as illustrated below? I don Quote Link to comment Share on other sites More sharing options...
IGSFX Posted September 4, 2008 Report Share Posted September 4, 2008 Hi, please post your chart image as an attachment since we see a broken image. ---- IG Software FX Quote Link to comment Share on other sites More sharing options...
tlewi Posted September 4, 2008 Author Report Share Posted September 4, 2008 See attachment Quote Link to comment Share on other sites More sharing options...
TomasT Posted September 4, 2008 Report Share Posted September 4, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.