![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Surface series throws unhandled Overflow error | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | christopher ireland <chris> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Can no longer replicate this. |
Code to reproduce: private void InitializeChart() { Steema.TeeChart.Styles.Surface surfaceSeries1; tChart1.Aspect.View3D = true; tChart1.Aspect.Orthogonal = false; Steema.TeeChart.Tools.Rotate rotate1 = new Steema.TeeChart.Tools.Rotate(tChart1.Chart); rotate1.Button = MouseButtons.Right; rotate1.Style = Steema.TeeChart.Tools.RotateStyles.All; rotate1.Active = true; surfaceSeries1 = new Steema.TeeChart.Styles.Surface(); surfaceSeries1.Visible = true; surfaceSeries1.WireFrame = false; surfaceSeries1.Pen.Visible = true; surfaceSeries1.Clear(); surfaceSeries1.ClearPalette(); surfaceSeries1.IrregularGrid = true; // bottom axis - pipe length Steema.TeeChart.Axis bottomAxis = tChart1.Axes.Bottom; bottomAxis.Title.Visible = true; bottomAxis.Title.Text = "Pipe length"; // left axis - property Steema.TeeChart.Axis leftAxis = tChart1.Axes.Left; leftAxis.Title.Visible = true; //leftAxis.Title.Text = // depth axis - time Steema.TeeChart.Axis depthAxis = tChart1.Axes.Depth; depthAxis.Title.Visible = true; depthAxis.Title.Text = "Time (s)"; double X; double Y; double Z; double B1; double B2; double Xbar; double Ybar; Xbar = Ybar = 10; B1 = B2 = 0.01; for (int i = -100; i < 100; i++) { X = (double)i; for (int j = -100; j < 100; j++) { Y = (double)j; Z = Math.Exp(-1 * B1 * (X - Xbar) * (X - Xbar) - 1 * B2 * (Y - Ybar) * (Y - Ybar)); surfaceSeries1.Add(X, Z, Y); } } tChart1.Series.Add(surfaceSeries1); }