Lines go above 100% line.

Jul 3, 2012 at 9:00 AM

The highest values are about 97%. When the graph is small as the image below, strangely the graph goes above the 100% line. When the graph is large (i.e., I maximize the window), it shows the correct line. I used the one I build from the latest source code, due to the colour bug in my previous post. small large

Coordinator
Jul 3, 2012 at 7:06 PM

see http://oxyplot.codeplex.com/discussions/360110 - I think it is the same problem.

I will consider changing the default LineJoin value from "miter" to "round"!

Jul 4, 2012 at 4:59 AM

Thank you for your quick reply, as usual.

Setting the LionJoint to "Round" surely solved the go-beyond-100% issue. But for another line series, which was a gentle slope, it is no longer smooth as it used to be. Probably because I changed the LineJoint method.

I do not know the differences of the three methods, but as an average user, can the line not be both smooth nor go beyond 100% or below 0%?

Coordinator
Jul 4, 2012 at 6:45 AM

See http://msdn.microsoft.com/en-us/library/system.windows.media.penlinejoin.aspx

Maybe reducing the MiterLimit could help - http://msdn.microsoft.com/en-us/library/system.windows.media.pen.miterlimit

(this must be implemented in the OxyPlot.Wpf.ShapesRenderContext class)

Coordinator
Jul 10, 2012 at 10:26 PM

I changed the default LineJoin value to "Bevel" for the LineSeries - this seems to work best. I could not see any differences on performance.