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 726

Summary: TBarSeries.YOrigin implementation for self-stacked bar charts using single series
Product: VCL TeeChart Reporter: Errol <errol.anderson.nz>
Component: SeriesAssignee: 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
TBarSeries.YOrigin offset does not work for self-stacked bar charts using a single series. It would be very useful if this could be implemented soon. While strictly an enhancement, it critically affects the charts I want to display.
Comment 1 narcís calvet 2014-04-15 05:18:23 EDT
Created attachment 179 [details]
Screen-shot demonstrating YOrigin with self stacked bars.
Comment 2 narcís calvet 2014-04-15 05:19:48 EDT
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;
Comment 3 yeray alonso 2014-04-15 05:41:23 EDT
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)