public void createCategoryModelSales() {
        ArrayList<StoredOrders> sOrders = getStoredInfo(this.fromDate);
        if (!sOrders.isEmpty() && sOrders != null) {
            for (int i = 0; i < sOrders.size(); i++) {
                if (sOrders.get(i).getSalesmanUsername() == null) {
                    sOrders.remove(sOrders.get(i));
                    i--;
                }
            }

            int salesmenCounter = db.getNumberOfSalesmen();
            String salesmanUsername = null;

            int[] salesNumbers = new int[salesmenCounter];
            String[] salesmenUsernames = new String[salesmenCounter];

            for (int i = 0; i < salesmenCounter; i++) {
                if (!sOrders.isEmpty()) {
                    salesmanUsername = sOrders.get(0).getSalesmanUsername();
                    salesmenUsernames[i] = salesmanUsername;
                    for (int u = 0; u < sOrders.size(); u++) {
                        if (sOrders.get(u).getSalesmanUsername().equals(salesmanUsername)) {
                            salesNumbers[i] += sOrders.get(u).getTotalPrice();
                            sOrders.remove(sOrders.get(u));
                            u--;
                        }
                    }
                }
            }
            categoryModelSales = new CartesianChartModel();
            ChartSeries salesmenPay = new ChartSeries();

            salesmenPay.setLabel("Commision earned");
            for (int i = 0; i < salesmenCounter; i++) {
                salesmenPay.set(salesmenUsernames[i], salesNumbers[i] * 0.11);
            }
            categoryModelSales.addSeries(salesmenPay);
        }
    }