![]() | 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: | In regular or Irregular ColorGrid series, the axes scales aren’t calculated | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | sandra pazos <sandra> |
| Component: | Series | Assignee: | yeray alonso <yeray> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | yeray |
| Priority: | High | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Using the following code, we can see that in regular or irregular ColorGrid series, the axes scales aren't calculated correctly when the CenteredPoints property is true and axes values are between 0 and 1. procedure TForm1.FormCreate(Sender: TObject); var x,z:Integer; begin Chart1.View3D:=false; Series1.IrregularGrid := true; for x:=0 to 5 do for z:=0 to 5 do Series1.AddXYZ(x/10,random,z/10); Series1.CenteredPoints := true; end; According the code the bottom axis value range should be from 0 to 0.5 instead of -0.5 to 0.1. Using the same code with TeeChart.Net the problem isn't appeared. Steema.TeeChart.Styles.ColorGrid series1; private void InitializeChart() { tChart1.Aspect.View3D = false; series1 = new Steema.TeeChart.Styles.ColorGrid(tChart1.Chart); Random rnd = new Random(); series1.IrregularGrid = true; for (double x = 0; x < 5; x++) { for (double z = 0; z < 5; z++) { double valuex = x / 10; double valuey = z / 10; series1.Add(x/10, rnd.Next(10), z); } } series1.CenteredPoints= true; }