Search code examples
c#wpfoxyplot

Oxyplot: Wrong scaling in volume chart


I have a problem with the scaling of a volume chart in case there are less than three data entries for either the x- or y-axis. Everything works fine if there are more entries:

Correct plot in case of more than 2 data entries for axis

If either the x-axis or the y-axis has less than three data entries, the plot is out of scale:

Incorrect plot in case of less than 3 data entries for axis

The plots are part of a bigger piece of software to analyze databases, which wasn't written by me, but I have debugged a lot and all the data seems to be queried and calculated correctly. For me it seems to be a problem with Oxyplot itself. The second plot itself is correct too, however it doesn't fit the y-axis.

Maybe, this is a known problem and someone could point me in the right direction to solve the issue.


Solution

  • I found the answer to the problem: Bug in OxyPlot. Update to the latest stable release fixed the issue.