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 - Allow different widths in a Tower series
Summary: Allow different widths in a Tower series
Status: CONFIRMED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-23 11:33 EDT by yeray alonso
Modified: 2016-03-23 11:33 EDT (History)
0 users

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 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;