Bar Series Drifting Upward

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

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


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.


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
(I don't have time to solve this myself at the moment)