Bar Series Drifting Upward

Jan 21, 2014 at 1:33 AM
Hello,

I have a nice OxyPlot setup with bar series and category axis on a WinForm. The thing is those bars jump up after I minimize and restore my form. I traced this down to this line in Render() method in BarSeriesBase.cs:
                if (!this.IsStacked)
                {
  culprit ->     categoryAxis.BarOffset[categoryIndex] += actualBarWidth;
                }
I don't know why this code is needed as it keeps on incrementing BarOffset values with each Render call, but that doesn't always make a visual difference. Nevertheless, once commented out bars stay where I intended them to be. I can provide more context if required. If possible, I'd like to request a fix.

Thanks!
MK
Coordinator
Jan 25, 2014 at 9:56 PM
Edited Jan 25, 2014 at 9:59 PM
Thanks for the bug report! I see this is happening also in the examples in the Windows Forms Example Browser (it is working in WPF). I have added issue
https://oxyplot.codeplex.com/workitem/10120
(I don't have time to solve this myself at the moment)