Skip to content

Commit 9344fe4

Browse files
authored
Fix incorrect coloring of TwoColorLineSeries (#2002)
1 parent 0dcc39c commit 9344fe4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.
1919
- Placement of BarSeries labels when stacked (#1979)
2020
- SystemInvalidException in LineSeries when only Double.Nan values are added (#1991)
2121
- Issue with tracking AreaSeries with monotonic data points (#1982)
22+
- Incorrect coloring of TwoColorLineSeries
2223
- HitTest when IsLegendVisible is false (#1975)
2324
- Font weight not being applied in ImageSharp (#2006)
2425

Source/OxyPlot/Series/TwoColorLineSeries.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ void RenderLine(OxyColor color)
141141

142142
using (rc.AutoResetClip(clippingRectLo))
143143
{
144-
RenderLine(this.ActualColor);
144+
RenderLine(this.ActualColor2);
145145
}
146146

147147
using (rc.AutoResetClip(clippingRectHi))
148148
{
149-
RenderLine(this.ActualColor2);
149+
RenderLine(this.ActualColor);
150150
}
151151
}
152152
}

0 commit comments

Comments
 (0)