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 1487 - MarksOnBar not correctly centred when using TBarSeries and MarksLocation is mlCenter
Summary: MarksOnBar not correctly centred when using TBarSeries and MarksLocation is m...
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-31 07:27 EDT by yeray alonso
Modified: 2016-03-31 07:33 EDT (History)
0 users

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


Attachments
screenshot (13.58 KB, image/png)
2016-03-31 07:27 EDT, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2016-03-31 07:27:58 EDT
Created attachment 577 [details]
screenshot

Having a TBarSeries with MarksLocation as mlCenter, the mark is almost in the centre, but if you look it closely you'll see it is a few pixels displaced.

You can see it if you have a bar smaller than the rest, so the bar bounds is similar to the mark bounds:

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;

  with Chart1.AddSeries(TBarSeries) as TBarSeries do
  begin
    FillSampleValues();
    YValue[2]:=MaxYValue/10;
    MarksOnBar:=true;
    MarksLocation:=mlCenter;
  end;
end;