Array indexes in C#(and most other languages) run from 0 to the number of items in the array - 1. So an integer array with three elements containing 101, 102, and 103 will have three valid indices:
arr[0] == 101
arr[1] == 102
arr[2] == 103
Any other value at all (i.e. negative or greater than 2) will be "outside the bounds" of the array - the values do not exist and cannot be accessed. Any attempt to read r write with an invalid index will throw an
Index was out of range
exception and your app will stop.
Since there is only one numeric index being used:
chartefficiency.Series[1].XValueType = ChartValueType.Date;
That means there is only one series in the chart, and you should be accessing it like this:
chartefficiency.Series[0].XValueType = ChartValueType.Date;
But you should use the debugger to confirm that is the line giving an error, and that there are any series loaded into the control!
Sorry, but we can't do that for you!