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 273 - [TV52016011] The Bar series width is calculated considering all the points in the ...
Summary: [TV52016011] The Bar series width is calculated considering all the points in...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: All All
: Normal enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-23 12:27 EST by yeray alonso
Modified: 2013-11-20 10:35 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:35:46 EST
The Bar series width is calculated considering all the points in the chart, not just the bar points. So having some bar series with a few points and a Line series with a lot of points, the bars width is calculated considering the line points and the bars will be very thin.
This doesn't happen in .NET because the following snipped isn't present.
In Series.pas,
Procedure TCustomBarSeries.DoBeforeDrawChart;
//...
    if SameClass(Series[t]) then
    begin
      //...
    end
    else
    begin
      if Series[t].YMandatory then
      begin
        tmp:=Series[t].Count;
        if (IMaxBarPoints=TeeAllValues) or (tmp>IMaxBarPoints) then
           IMaxBarPoints:=tmp;
      end;
    end;
 [created:2012-01-23T12:27:54.000+01:00 reported by:yeray@steema.com reported in version:2011.04.41118 (TeeChart VCL)]