}); DefaultStatisticalCategoryDataset result = new DefaultStatisticalCategoryDataset(); for(Comparable<?> seriesId : seenSeriesIds) { for(Comparable<?> categoryId : seenCategoryIds) {
/** * Sets up the table cell renderer and the bar chart. * * @param plotOrientation */ private void setUpRendererAndChart(PlotOrientation plotOrientation) { setName("Table.cellRenderer"); setLayout(new BorderLayout()); valueLabel = new JLabel(""); valueLabel.setMinimumSize(new Dimension(widthOfValueLabel, 0)); valueLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); valueLabel.setFont(valueLabel.getFont().deriveFont(valueLabel.getFont().getSize() - 2f)); signifianceLabel = new JLabel(""); signifianceLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); DefaultStatisticalCategoryDataset dataset = new DefaultStatisticalCategoryDataset(); chart = ChartFactory.createBarChart(null, null, null, dataset, plotOrientation, false, false, false); this.chartPanel = new ChartPanel(chart); this.setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS)); this.add(valueLabel); this.add(chartPanel); this.add(signifianceLabel); }
private DefaultStatisticalCategoryDataset createDataset() final DefaultStatisticalCategoryDataset dataset = new DefaultStatisticalCategoryDataset(); int count = 0;