long baseCDayTime = 0L; if(inventory != null) { baseCDayTime = inventory.getStartCDay(); }
    private void resetAxes() {	java.util.List viewList = chart.getDataView();	for (int i = 0; i < viewList.size(); i++) {	    ChartDataView chartDataView = (ChartDataView)viewList.get(i);	    // use time axis for x axis	    JCAxis xaxis = chartDataView.getXAxis();	    	    if(displayCDay) {		xaxis.setAnnotationMethod(JCAxis.VALUE);		xaxis.setPrecision(0);		//xaxis.setAnnotationMethod(JCAxis.TIME_LABELS);		//xaxis.setTimeUnit(JCAxis.DAYS);		//xaxis.setTimeBase(new Date(InventoryChartBaseCalendar.getBaseTime() - baseCDayTime ));		//xaxis.setTimeFormat("D");		xaxis.setTickSpacing(7);		xaxis.setGridSpacing(7);		//		xaxis.setTickSpacingIsDefault(true);		//              xaxis.setGridSpacingIsDefault(true);		//xaxis.setMin(CDAY_MIN);		xaxis.setGridVisible(true);		xaxis.setAnnotationRotation(JCAxis.ROTATE_NONE);	    }	    else {		xaxis.setAnnotationMethod(JCAxis.TIME_LABELS);		xaxis.setTimeBase(new Date(InventoryChartBaseCalendar.getBaseTime()));		xaxis.setTimeUnit(JCAxis.DAYS);		xaxis.setTickSpacing(7);		xaxis.setGridSpacing(7);		xaxis.setTimeFormat("M/d");		/*		 *if(logger.isDebugEnabled()) {		 *logger.debug("Base Date is: " + new Date(InventoryChartBaseCalendar.getBaseTime()));		 *}		 */		xaxis.setGridVisible(true);		xaxis.setAnnotationRotation(JCAxis.ROTATE_270);	    }      	    // y axis titles	    JCAxis yaxis = chartDataView.getYAxis();	    yaxis.setGridVisible(true);	    JCAxisTitle yAxisTitle = new JCAxisTitle(myYAxisTitle);	    yAxisTitle.setRotation(ChartText.DEG_270);	    yAxisTitle.setPlacement(JCLegend.WEST);	    yaxis.setTitle(yAxisTitle);	    //       yaxis.setEditable(false); // don't allow zoomin on this axis	    yaxis.setMin(0); // set zero as the minimum value on the axis	}    }  