![]() | 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: | Allow different widths in a Tower series | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Series | Assignee: | 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: | |
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;