Lines outside of chart area


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

By Fabio Olcese - 8 Years Ago
Lines with negative values are outside of the chart as seen in this image:

https://www.nevron.com/forum/uploads/images/6162dfc6-036b-449a-9afe-02f7.png

I was wondering if there was a property so that the lines fit inside the charting area. Thanks in advance.
By Nevron Support - 8 Years Ago

Hi Fabio,

This is most likely caused by the default line join - the following code shows how to change the line join of line segments:

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

or

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

Hope this helps - let us know if you have any questions.

By Fabio Olcese - 8 Years Ago
Thanks for the response. That doesn't seem to be solving the issue. As additional information I will add that if I zoom a little it works correctly. 

Zoomed a little image: 
https://www.nevron.com/forum/uploads/images/b63171d5-e1a3-49e0-82dd-8ff5.png
By Nevron Support - 8 Years Ago
Hi Fabio,

Do you specify a View to the chart axis? Can you send us the code that you use to configure the chart for review?