@Override public void run() { try { int len = Math.min(xVar.getValue().length, yVar.getValue().length); double[] x = xVar.getValue(); double[] y = yVar.getValue(); double[][] xy = new double[2][len]; for (int i = 0; i < len; i++) { xy[0][i] = x[i]; xy[1][i] = y[i]; } chartVar.setValue(xy); } catch (Exception e) { } }