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 - TBarSeries.YOrigin implementation for self-stacked bar charts using single series
Summary: TBarSeries.YOrigin implementation for self-stacked bar charts using single se...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-14 21:31 EDT by Errol
Modified: 2014-04-15 05:41 EDT (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
Screen-shot demonstrating YOrigin with self stacked bars. (56.79 KB, image/jpeg)
2014-04-15 05:18 EDT, narcís calvet
Details

Note You need to log in before you can comment on or make changes to this bug.
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)