long baseTime = InventoryChartBaseCalendar.getBaseTime();
    public void setInventoryValues() {	if(inventory == null) {	    xvalues = new double[nSeries][0];	    yvalues = new double[nSeries][0];	    return;	}	InventoryScheduleHeader schedHeader = (InventoryScheduleHeader)	    inventory.getSchedules().get(LogisticsInventoryFormatter.INVENTORY_LEVELS_TAG);	ArrayList levels = schedHeader.getSchedule();	long baseTime = InventoryChartBaseCalendar.getBaseTime();	computeCriticalNValues();	xvalues = new double[nSeries][];	yvalues = new double[nSeries][];	//initZeroYVal(nValues);	for (int i = 0; i < (nSeries-1); i++) {	    xvalues[i] = new double[nValues];	    yvalues[i] = new double[nValues];	    	    for (int j = 0; j < nValues; j++) {		xvalues[i][j] = minDay + (j * bucketDays);		yvalues[i][j] = 0;	    }	}	ArrayList targetLevels = new ArrayList();	//Need to add target level which is a little more complicated	//than you think.  We don't know how many values there are	//in this third series. We have to add them if they are non null	//to a vector, allocated the third series same length as the 	//vector and put them into there. mildly tricky business.	for (int i=0; i < levels.size(); i++) {	    InventoryLevel level = (InventoryLevel) levels.get(i);	    long startTime = level.getStartTime();	    long endTime = level.getEndTime();	    int startDay = (int)((startTime - baseTime) / MILLIS_IN_DAY);	    int endDay = (int)((endTime - baseTime) / MILLIS_IN_DAY);	    double invQty = level.getInventoryLevel();	    double reorderQty = level.getReorderLevel();	    for(int j = startDay; j<= endDay; j+=bucketDays) {		yvalues[0][(j-minDay)/bucketDays] = invQty;		yvalues[1][(j-minDay)/bucketDays] = reorderQty;	    }	    if(level.getTargetLevel() != null) {		targetLevels.add(level);	    }	}	xvalues[2] = new double[targetLevels.size()];	yvalues[2] = new double[targetLevels.size()];	for(int i=0; i<targetLevels.size(); i++) {	    InventoryLevel level = (InventoryLevel) targetLevels.get(i);	    long startTime = level.getStartTime();	    int startDay = (int)((startTime - baseTime) / MILLIS_IN_DAY);	    double targetLevel = level.getTargetLevel().doubleValue();	    xvalues[2][i] = startDay;	    yvalues[2][i] = targetLevel;	}    }