Lines go above 100% line.

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

typingcat wrote at 2012-07-03 11:00:

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

objo wrote at 2012-07-03 21:06:

see - I think it is the same problem.

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

typingcat wrote at 2012-07-04 06:59:

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%?

objo wrote at 2012-07-04 08:45:


Maybe reducing the MiterLimit could help -

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

objo wrote at 2012-07-11 00:26:

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