public void drawGraph(){
		if(parentNode == null){
			data = new DefaultPieDataset();
			
			for(int i=0; i<partitionInfo.length; i++){
				data.setValue(partitionInfo[i].getAbsolutePath(),partitionInfo[i].getTotalSpace());
			}
			
			PieChart pi = new PieChart("Overview", data);
			chart = pi.createChart();
		}
		
		else try{
			data = new DefaultPieDataset();
			Node[] child = parentNode.getChildren();
			
			for(int i=0; i<child.length; i++){
				data.setValue(child[i].getName(), child[i].getSize());
			}
			
			PieChart pi = new PieChart(parentNode.getPath(), data);
			chart = pi.createChart();
		}
		catch(NullPointerException e){
			JOptionPane.showMessageDialog(new JFrame(), "The element you have clicked on is not a valid area to scan further." +
					" Some Possibilities as to why : \n" +
					" - The location is a file and not a directory.\n" +
					" - The area you have clicked on is not a valid scanning area.", "Bottom level", JOptionPane.ERROR_MESSAGE);
		}
		removeAll();
		
		popup = chart.getPopupMenu();
		popup.removeAll();
		backMenuItem = new JMenuItem("Back");
		backMenuItem.addActionListener(new ContextMenuListener());
		popup.add(backMenuItem);
		deleteMenuItem = new JMenuItem("Delete");
		deleteMenuItem.addActionListener(new ContextMenuListener());
		popup.add(deleteMenuItem);
		chart.setPopupMenu(popup);
		
//		menu.addActionListener(new ActionListener(){
//			  public void actionPerformed(ActionEvent e){}
//			  });
		
		chart.addChartMouseListener(this);
		add(chart);
	}