Steema Issues Database

Note: 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.



Bug 841 - In regular or Irregular ColorGrid series, the axes scales aren’t calculated
Summary: In regular or Irregular ColorGrid series, the axes scales aren’t calculated
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: yeray alonso
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-11 05:54 EDT by sandra pazos
Modified: 2022-01-21 10:58 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sandra pazos 2014-07-11 05:54:24 EDT
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; 
        }