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 1478

Summary: Allow different widths in a Tower series
Product: .NET TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2016-03-23 11:33:08 EDT
At the beginning of the DrawCells() method in the Tower series, we calculate internal properties (IOffW and IOffD) that will be used later, at CalcCell, to determine the bounds of each column.

If you have irregular X or Z values, you can't set a PercentWidth/PercentDepth to make all the columns connected.

This example sets a big PercentWidth but it's too big for some values (9 to 11) and the bars on the right side are still unconnected (11 to 15 and 15 to 20):

      Tower tower1 = new Tower(tChart1.Chart);
      tower1.PercentWidth = 300;

      Random r = new Random();
      for (int i = 0; i < 5; i++)
      {
        tower1.IrregularGrid = true;
        tower1.Add(0, r.Next(20), i);
        tower1.Add(3, r.Next(20), i);
        tower1.Add(6, r.Next(20), i);
        tower1.Add(9, r.Next(20), i);
        tower1.Add(11, r.Next(20), i);
        tower1.Add(15, r.Next(20), i);
        tower1.Add(20, r.Next(20), i);  
      }
      
      tChart1.Axes.Bottom.MinimumOffset = 30;
      tChart1.Axes.Bottom.MaximumOffset = 30;

      tChart1.Aspect.Orthogonal = false;
      tChart1.Aspect.Chart3DPercent = 100;
      tChart1.Aspect.Zoom = 70;