public static void generateData(Index[] indexData) {
        data = new double[indexData.length][6];
        for (int i = 0; i < indexData.length; i++) {

            data[i][0] = i+1;
            data[i][1] = indexData[i].getOpen_val();
            data[i][2] = indexData[i].getClose_val();
            data[i][3] = indexData[i].getMin_val();
            data[i][4] = indexData[i].getMax_val();
            data[i][5] = indexData[i].getVol_val();
        }        
    }