if(name.equals(InventoryChart.REQUESTED_INVENTORY_LEGEND))
if((name.equals(InventoryChart.REQUESTED_INVENTORY_LEGEND)) || (name.equals(InventoryChart.REQUESTED_SUPPLY_LEGEND)))
    protected void addDemandSupplyDataView(ChartDataView chartDataView) {	String name = chartDataView.getName();	JComponent component;	Color color;	JLabel label;	SeriesToggleButton button;	JLabel demandValue=null;	int j=0;	boolean madeDemandLabel=false;	boolean skippedDemandLabel=false;	ChartDataViewSeries series;	int gridX=-1;	int titleY=SUPPLY_TITLE_GRIDY;	if(name.equals(InventoryChart.REQUESTED_INVENTORY_LEGEND))	    gridX=REQUESTED_GRIDX;	else	    gridX=ACTUAL_GRIDX;	    	    	initDemandSupplyPanel();	// add checkbtn or label for the view	int y = 0;	if (inventoryChart.isChartDataViewSelectable(chartDataView)) {	    component = createCheckBox(name,chartDataView.isVisible());	} else {	    component = createLabel(name);	}	demandSupplyPanel.add(component,	    new GridBagConstraints(gridX, y++, 1, 1, 0.0, 0.0,				   GridBagConstraints.WEST, 				   GridBagConstraints.NONE, 				   insets, 0, 0));	// add label w/ color coded circle for each series	int numSeries = chartDataView.getNumSeries();	if (numSeries == 0) {	    label = new JLabel("No "+name);	    label.setForeground(Color.black);	    demandSupplyPanel.add(label, 				  new GridBagConstraints(gridX, y++, 1, 1, 0.0, 0.0,							 GridBagConstraints.WEST, 							 GridBagConstraints.NONE, 							 insets, 0, 0));	}	for (j = 0; j < numSeries; j++) {	    series = chartDataView.getSeries(j);	    color = series.getStyle().getSymbolColor();	    String seriesName = series.getLabel();	    String labelName="";	    if(name.equals(InventoryChart.REQUESTED_INVENTORY_LEGEND)) {				//Setup the left hand titles		if(seriesName.equals(InventoryChartDataModel.REQUESTED_DUE_IN_LABEL) ||		   seriesName.equals(InventoryChartDataModel.UNCONFIRMED_DUE_IN_LABEL)) { 		    component = createLabel(SUPPLY_TITLE);		    demandSupplyPanel.add(component, 				 new GridBagConstraints(TITLES_GRIDX, titleY++, 1, 1, 0.0, 0.0,							GridBagConstraints.WEST, 							GridBagConstraints.NONE, 							insets, 0, 0));			    if(!madeDemandLabel) {			component = createLabel(DEMAND_TITLE);			demandSupplyPanel.add(component, 					      new GridBagConstraints(TITLES_GRIDX, 								     titleY, 								     1, 1, 0.0, 0.0,								     GridBagConstraints.WEST, 								     GridBagConstraints.NONE, 								     insets, 0, 0));			demandValue = createLabel(NONE_LABEL);			demandSupplyPanel.add(demandValue, 					      new GridBagConstraints(TITLES_GRIDX + 1,								     titleY,								     1, 1, 0.0, 0.0,								     GridBagConstraints.WEST, 								     GridBagConstraints.NONE, 								     insets, 0, 0));			madeDemandLabel=true;			titleY++;		    }		}		else {		    //if there is demand erase the NONE_LABEL		    if(demandValue != null) {			demandValue.setText(EMPTY_LABEL);		    }		    if(seriesName.equals(InventoryChartDataModel.REQUESTED_DUE_OUT_LABEL)) {			component = createLabel(ACTUAL_DEMAND_TITLE);		    }		    else {			component = createLabel(PROJECTED_DEMAND_TITLE);		    }		    demandSupplyPanel.add(component, 					  new GridBagConstraints(TITLES_GRIDX, titleY++, 								 1, 1, 0.0, 0.0,								 GridBagConstraints.WEST, 								 GridBagConstraints.NONE, 								 insets, 0, 0));		}		//Setup Requested label		labelName = REQUESTED_LABEL;				    }	    else {		//Setup actual label		if(seriesName.equals(InventoryChartDataModel.ACTUAL_DUE_OUT_SHIPPED_LABEL) ||		   (seriesName.equals(InventoryChartDataModel.ACTUAL_PROJECTED_DUE_OUT_SHIPPED_LABEL))) {		    labelName=SHIPPED_LABEL;		}		else if(seriesName.equals(InventoryChartDataModel.ACTUAL_DUE_OUT_CONSUMED_LABEL)			||			(seriesName.equals(InventoryChartDataModel.ACTUAL_PROJECTED_DUE_OUT_CONSUMED_LABEL))){		    labelName = CONSUMED_LABEL;		}		else {		    labelName = RECEIVED_LABEL;		}    	    }   	    	    /***	    label = new JLabel(labelName,			       new CircleIcon(color, iconWidth),			       SwingConstants.RIGHT);	    label.setForeground(Color.black);	    ***/	    	    button = new SeriesToggleButton(labelName,iconWidth,					    j,series);	    	    demandSupplyPanel.add(button, 				  new GridBagConstraints(gridX, y++, 1, 1, 0.0, 0.0,							 GridBagConstraints.WEST, 							 GridBagConstraints.NONE, 							 insets, 0, 0));	    // Skip over Demand label	    if(!skippedDemandLabel) {		y++;		skippedDemandLabel=true;	    }	}    }