if(plot.getAxisOrientationSetting() == AxisOrientationSetting.Y_AXIS_AS_TIME) {
double[] tmp = x;
x = y;
y = tmp;
}
dataset.prepend(x, 0, y, 0, x.length);
} else {
// Data appearing in the middle of the dataset.
// Assume that it's caused by the last second of data arriving twice,
// once from the initial historical request and once from the once-per-second update.
// It may also be values for predictive data we already loaded.