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 590

Summary: Left axis margins differ when series points added in after first paint
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: AxesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: button10 click result
button 10 then button 11 click result

Description christopher ireland 2014-02-20 06:46:50 EST
Created attachment 94 [details]
button10 click result

Pressing the following button:
        private void button10_Click(object sender, EventArgs e)
        {

          Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1.Chart);
          line.LinePen.Width = 2;

          tChart1.Series.Add(line);

          tChart1.Series[0].XValues.DateTime = true;

          tChart1.Series[0].Add(new DateTime(2009, 7, 1, 0, 0, 0), 6525.4632);
          tChart1.Series[0].Add(new DateTime(2009, 7, 1, 0, 30, 0), 6325.000016);
        }

gives the attached image button10.png. Pressing the two buttons sequentially:

        private void button10_Click(object sender, EventArgs e)
        {

          Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1.Chart);
          line.LinePen.Width = 2;

          tChart1.Series.Add(line);

          tChart1.Series[0].XValues.DateTime = true;
        }

        private void button11_Click(object sender, EventArgs e)
        {
          tChart1.Series[0].Add(new DateTime(2009, 7, 1, 0, 0, 0), 6525.4632);
          tChart1.Series[0].Add(new DateTime(2009, 7, 1, 0, 30, 0), 6325.000016);
        }

gives the attached image button11.png.

The difference between the two images is that the space between the left axis and the edge of the Chart component is bigger in the first case than the second.
Comment 1 christopher ireland 2014-02-20 06:47:22 EST
Created attachment 95 [details]
button 10 then button 11 click result