void nextPoint(Graphics g, int gx, int sx) {
        int gy = parent.parent.data.getData(nodeId, gx);
        int sy = -1;

        if (gy >= 0) { // Ignore missing values
        double rsy = height - yscale * (gy - gy0);

        // Ignore problem values
        if (rsy >= -1e6 && rsy <= 1e6) {
            sy = (int)(rsy + 0.5);
        }

        if (lastsy >= 0 && sy >= 0) {
            g.drawLine(lastsx, lastsy, sx, sy);
        }
        }
        lastsx = sx;
        lastsy = sy;
    }