private void showCombined(String visName) {
   BoxAndWhisker bwvis = (BoxAndWhisker) VisualizationsRegistry.visualizations.get(visName);
   String[] metricNamesArray = metricNames.toArray(new String[metricNames.size()]);
   JFreeChart chart = bwvis.visualizeCombined(metricNamesArray, results);
   FreeChartWindow fcw = new FreeChartWindow(chart, dim);
   fcw.setVisible(true);
 }
  private void showVis(String visName) {
    final String metricName = (String) metricNameComboBox.getSelectedItem();
    final int i = metricNames.indexOf(metricName);

    Map<Project, Double> mresults = new HashMap<Project, Double>();
    for (Project p : results.keySet()) {
      mresults.put(p, results.get(p)[i]);
    }

    JFreeChart chart =
        VisualizationsRegistry.visualizations.get(visName).visualize(metricName, mresults);
    FreeChartWindow fcw = new FreeChartWindow(chart, dim);
    fcw.setVisible(true);
  }