- In Solution Explorer, expand down the AdvancedHMIControls project
- Expand down the Controls folder
- Right click ChartBySampling.vb and select View Code
- Go to line 314 and modify the code like this:
If MyBase.Series(index).Points.Count > m_MaximumActivePoints Then
MyBase.Series(index).Points.RemoveAt(0)
'* When X-Axis set to Date or Time, it does not auto scale, so force it
If MyBase.Series(index).XValueType = DataVisualization.Charting.ChartValueType.Time Or
MyBase.Series(index).XValueType = DataVisualization.Charting.ChartValueType.Date Or
MyBase.Series(index).XValueType = DataVisualization.Charting.ChartValueType.DateTime Then
MyBase.ChartAreas(0).Axes(0).Maximum = MyBase.Series(index).Points(MyBase.Series(index).Points.Count - 1).XValue
MyBase.ChartAreas(0).Axes(0).Minimum = MyBase.Series(index).Points(0).XValue
End If
' MyBase.Series(index).Points.Remove(x)
End If