private void BarColor(availableChannel chanel,JFreeChart chart){
        CategoryPlot plot = (CategoryPlot) chart.getPlot();
        BarRenderer renderer = (BarRenderer) plot.getRenderer();
        Color barColor=Color.BLACK;
        switch(chanel){
            case red:
                barColor=Color.red;
                break;
            case green:
                barColor=Color.green;
                break;
            case blue:
                barColor=Color.blue;
                break;
            case alpha:
                barColor=Color.white;
                break;
            case grayscale:
                barColor=Color.gray;
                break;
        }
        renderer.setSeriesPaint(0, barColor);
    }