Search code examples
mschart

My Chart is Cut Off When Drawn (Most of The Time)


I'm filling an mschart with data dynamically, and most of the time the chart is cut off on the right.

enter image description here

I've been fiddling with many of the properties on the x axis and the chart area, but nothing seems to fix it. For these charts when I stretch the form across both of my monitors the chart will eventually fit. And yet, it will fit no problem for data that's very similar.

I'm not terribly well versed in mschart, is it a problem with the chart area or the x axis?

Thanks in advance.


Solution

  • I made an incorrect assumption that the lack of the vertical line on the end meant that part of the chart was hidden. The fix was to specify the interval with which to label the axis so a label is always drawn at the end.