code: function (key) {
                      var val = key === 'y' && series.toYData ? series.toYData(point) : point[key];
                      series[key + 'Data'][i] = val;
                  }
docs: Insert the value in the given position