It appears that InsertEmptyPoints
was the correct method for resolving the problem, however if anyone has issues with this not appearing to do anything as I did, then using additional parameters in the method could resolve your issue, as it did mine.
For Each s As Series In chart.Series
chart.DataManipulator.InsertEmptyPoints(1, IntervalType.Number, 0, IntervalType.Number, MinXAxis, MaxXAxis, s)
Next
I used a 0 value in the offset section of the method (as I have no need to offset), and instead focused on the 5th (fromXValue
) and 6th (toXValue
) parameters to specify the range of values along my axis. The variables MinXAxis and MaxXAxis are assigned the values I need dynamically.
This resolves both the gapping and overlap for my series.
For more info on InsertEmptyPoints
see msdn, however be advised it currently makes no mention of the fromXValue
and toXValue
parameters, I found out about them from within Visual Studio.