![]() | 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: | Choose the position in the horizontal axis for the mbSelfStack MultiBar style to be drawn | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | chris, david, errol.anderson |
| Priority: | --- | ||
| Version: | 140220 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=3&t=14778&p=65352#p65352 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: |
test project with possible fix
testing new properties |
||
This issue also covered recently in .NET, the workaround again being to use a Stacked rather than SelfStacked MultiBar style: http://www.teechart.net/support/viewtopic.php?p=64864#p64864 One possible solution is: Series1.SelfStackedPosition := 23.6; But its a name too long for a property. Using the XValues can be a good solution, and it will allow positioning each bar point at a different X position (if desired). The problem is to choose a good name for the property that will activate this behaviour. One solution can be detecting if the series has X values, then use them. If not, use the current way of positioning at SeriesIndex. Created attachment 550 [details] test project with possible fix The same initial VCL customer in a new thread notes working with tables would add complexity to the Stacked option: http://www.teechart.net/support/viewtopic.php?f=3&t=15961 Ie, if you have several tables each one willing to be a stacked column (in an unforced X position), switching to Stacked bars would imply some work on the tables before assigning them to the series. Created attachment 582 [details]
testing new properties
Project to test properties SelfStackPosition and UseSelfStackPosition.
|
At the moment, when mbSelfStack MultiBar style is set, CalcXPos and MinXValue calculate the position of the index of the series instead of using the XValues if present: function THorizBarSeries.MinYValue: Double; begin if MultiBar=mbSelfStack then result:=SeriesIndex else result:=inherited MinYValue; end; However, there's a customer who would like mbSelfStack MultiBar style to be controllable where it's being drawn in the horizontal axis. We could use the first value in the XValue list if present. And maybe we should add some property to activate this behaviour. Have should decide how to proceed when this property is activated and no XValue is found, or if the bar will overlap a previously drawn bar,...