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 174

Summary: [TV52014364] Having a THorizBarSeries with BarWidthPercent=100, if you add the val...
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major    
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2013-11-20 10:01:48 EST
1. Having a THorizBarSeries with BarWidthPercent=100, if you add the values with AddXY method and the first point has a bigger Y than the second, both them will be drawn at the same Y position. Also, if you hide the border, there is a space between the bars.
A workaround is to re-sort the valuelist.
The same happens in .NET v4 and the same workaround works on it too.
2. With YValues.Order set to both loNone or loDescending the suggested workaround seems to do nothing.
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.View3D:=false;
  Chart1.Legend.Visible:=false;
  with Chart1.AddSeries(THorizBarSeries) as THorizBarSeries do
  begin
    BarWidthPercent:=100;
    Pen.Visible:=false;
    ColorEachPoint:=true;
    //YValues.Order:=loDescending; //2. workaround break
    for i:=4 downto 0 do
      AddXY(random*100, i);
    //YValues.Sort; //1. workaround
  end;
end; [created:2009-08-25T16:09:46.000+01:00 reported by:yeray@steema.com reported in version:9.0 (TeeChart VCL)]