Skip to content
Open
Prev Previous commit
fix IsTransposed plot
  • Loading branch information
tangmanger committed Apr 18, 2026
commit f9ad23762e12062bdae1bcc906e700a080695a7a
10 changes: 8 additions & 2 deletions Source/OxyPlot/Series/BarSeries/ErrorBarSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,14 @@ protected override void RenderItem(
{
if (errorBarItem.IsMarkerVisible)
{
ScreenPoint screenPoint = new ScreenPoint(upperErrorPoint.X + errorBarItem.MarkerOffset.X,
upperErrorPoint.Y + errorBarItem.MarkerOffset.Y);
double x = upperErrorPoint.X + errorBarItem.MarkerOffset.X;
double y = upperErrorPoint.Y + errorBarItem.MarkerOffset.Y;
if (this.IsTransposed())
{
x = upperErrorPoint.X + errorBarItem.MarkerOffset.Y;
y = upperErrorPoint.Y - errorBarItem.MarkerOffset.X;
}
ScreenPoint screenPoint = new ScreenPoint(x, y);
rc.DrawMarker(screenPoint,
errorBarItem.MarkerType,
errorBarItem.CustomOutline,
Expand Down