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 2298 - New mbSelfStack100 TMultiBar style
Summary: New mbSelfStack100 TMultiBar style
Status: RESOLVED FIXED
Alias: None
Product: VCL 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: 2020-03-16 06:04 EDT by yeray alonso
Modified: 2023-03-15 14:59 EDT (History)
1 user (show)

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 2020-03-16 06:04:40 EDT
The TMultiBar styles currently available are:

TMultiBar=(mbNone,mbSide,mbStacked,mbStacked100,mbSideAll,mbSelfStack);


Having the following data:

Series1:
42983876.63
25821988.43

Series2:
9018.86
10130.24

A customer wants to show a column for each series in percentages. This is how Excel draw the stacked style.

Our SelfStack style uses absolute values, not 100%
Our Stacked100 style groups the values by index/xvalue to draw each 100% column. It doesn't draw a column for each series

A new SelfStack100 could be a solution.

A workaround is to "transpose" the series and values to achieve the same effect. Ie:

  Chart1.Legend.Hide;
  Series1.MultiBar:=mbStacked100;

  Series1.Add(42983876.63, 'Series 1');
  Series2.Add(25821988.43, 'Series 1');

  Series1.Add(9018.86, 'Series 2');
  Series2.Add(10130.24, 'Series 2');
Comment 1 david berneda 2023-03-15 14:59:05 EDT
New feature added. To enable it:

Series1.MultiBar := mbSelfStack;  // <-- as usually

Series1.SelfStack.Percent := True;   // <-- show self-stacked from 0 to 100%

For Bar, Horizontal Bar and derived series types, for VCL/FMX/LCL, in all platforms.

Pending to test the Series1.YOrigin property, and with negative values or a mix of negative and positive values.

Also pending to test visual display with all 3D combinations, with one or more self-stacked series, bar styles, etc.