Horizontal Line - Marks offset problem with Inverted Axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Horizontal Line - Marks offset problem with Inverted Axis

Post by SteveP » Wed Aug 17, 2005 8:49 pm

Horizontal line series with Marks incorrectly shifts where the data is plotted within the axis region when the Botom axis is Inverted. This can be seen in the chart editor. Toggle the Bottom Axis Inverted checkbox property.

When not inverted, the botom axis minimum lies at the left exis edge. The bottom axis maximum lies to the left of the right axis, making space for the Mark's arrow. The Mark's label's left edge lies at the right axis.

When Inverted, the bottom axis minimum still lies at the left axis. It should be shift to the right slightly so that the mark's arrow is entirely within the axis region. Instead, the entire mark for the minimum value lies outside the axis region. Also, the bottom axis maximum data value remains within the axis region (to the left of the right axis) instead of touching the right axis.

Standard Line series does not do this.

I noticed that a Horizontal Bar series has its mark's position alignment behave differntly. Instead of the mark's label's edge being aligned right at the axis, the label lies partially over the axis.

Wish : Could the plot be shifted so that in the Y-direction, the entire mark (its label and its arrow) lie within the axis region ? Currently, the plot is shifted so that the mark arrow lies within the axis region but the mark label is outside the axis region. It can be clipped in some cases (if the chart margin is small for example).

Steve

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Aug 19, 2005 8:28 am

Hi Steve,
Wish : Could the plot be shifted so that in the Y-direction, the entire mark (its label and its arrow) lie within the axis region ? Currently, the plot is shifted so that the mark arrow lies within the axis region but the mark label is outside the axis region. It can be clipped in some cases (if the chart margin is small for example).
Yes, I've added this on our wish list so it can be considered to inclusion for the next releases.

In meantime, a way around this could be to increase the Maximum Offset of the Bottom axis (when it's inverted).

Post Reply