![]() | 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: | 'Regular' irregular ColorGrids not compatible with CenteredPoints | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | christopher ireland <chris> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | TeeChart.NET 2014 4.1.2014.02060 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Using the following code, we can see that 'regular' irregular ColorGrids fail to render CenteredPoints properly: private Steema.TeeChart.Styles.ColorGrid series1; private void InitializeChart() { tChart1.Aspect.View3D = false; series1 = new Steema.TeeChart.Styles.ColorGrid(tChart1.Chart); FillValues(true, false); //'regular' irregular } private void FillValues(bool irregular, bool highlyirregular) { double x, y, z; Random rnd = new Random(); int count = 24; double zInterval = irregular ? 3 : 1; double xInterval = irregular ? 2 : 1; for (x = 0; x < count; x += xInterval) { if (irregular && highlyirregular) x *= xInterval; for (z = 0; z < count; z += zInterval) { if (irregular && highlyirregular) z *= zInterval; y = rnd.NextDouble(); series1.Add(x, y, z); } } series1.IrregularGrid = irregular; } private void button1_Click(object sender, EventArgs e) { series1.CenteredPoints = !series1.CenteredPoints; } private void button2_Click(object sender, EventArgs e) { series1.Clear(); FillValues(!series1.IrregularGrid, false); }