Corner style of line graph


https://www.nevron.com/Forum/Topic12124.aspx
Print Topic | Close Window

By rich dudley - 7 Years Ago
I haven't been able to find an option to change how the library handles the corners created by segment intersection.  Sometimes sharp angles overflow the axis which I cant have.  Has anyone found a solution to this?
Below: examples of my problem, and the hopeful solution output

https://www.nevron.com/forum/uploads/images/f25cdafa-1a04-4295-890d-0bd5.pnghttps://www.nevron.com/forum/uploads/images/0c3de6ba-5667-47ee-b938-bc64.png
By Nevron Support - 7 Years Ago

Hi Rich,

You need to change the line join:

line.BorderStyle.LineJoin = System.Drawing.Drawing2D.LineJoin.Bevel;

Let us know if you have any questions or comments.