![]() | 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: | TBarSeries.YOrigin implementation for self-stacked bar charts using single series | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | Errol <errol.anderson.nz> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | CONFIRMED --- | ||
| Severity: | major | CC: | narcis, yeray |
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=3&t=14860 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | Screen-shot demonstrating YOrigin with self stacked bars. | ||
|
Description
Errol
2014-04-14 21:31:57 EDT
Created attachment 179 [details]
Screen-shot demonstrating YOrigin with self stacked bars.
This works fine for me here. Using the code snippet below I get the chart in the attached screen-shot. Is that what you expected?
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
var Series1: TBarSeries;
i: Integer;
begin
Series1:=TBarSeries.Create(Self);
Series1.MultiBar:=mbSelfStack;
Series1.UseYOrigin:=True;
Series1.YOrigin:=100;
for i:=0 to 5 do
Series1.Add(200);
Chart1.AddSeries(Series1);
end;
The left axis is rescaled according to the YOrigin set, but is your scroll the chart down, you'll see the bars still start at 0. Without mbSelfStack, setting YOrigin means the bars start at this position (and also the left axis is rescaled) |