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 - [TV52014364] Having a THorizBarSeries with BarWidthPercent=100, if you add the val...
Summary: [TV52014364] Having a THorizBarSeries with BarWidthPercent=100, if you add th...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 17:09 EDT by yeray alonso
Modified: 2013-11-20 10:01 EST (History)
0 users

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 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)]