Bar Series Drifting Upward

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

mkov wrote at 2014-01-21 02:33:

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

objo wrote at 2014-01-25 22:56:

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)