Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[FIXED JENKINS-9745] Added new graphs that shows the totals (scaled).
  • Loading branch information
uhafner committed Jun 17, 2011
1 parent e7f77ce commit 34c837d4ea4ed1255b0ccf5f185852db4017efd8
Showing with 2 additions and 10 deletions.
  1. +1 −1 pom.xml
  2. +1 −9 src/main/java/hudson/plugins/analysis/collector/OriginGraph.java
@@ -24,7 +24,7 @@
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-core</artifactId>
<version>1.22</version>
<version>1.23-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
@@ -6,7 +6,6 @@
import hudson.plugins.analysis.util.ToolTipProvider;
import hudson.util.ColorPalette;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.util.ArrayList;
@@ -16,7 +15,6 @@
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.renderer.category.CategoryItemRenderer;
import org.jfree.chart.renderer.category.LineAndShapeRenderer;
import org.jfree.data.category.CategoryDataset;

import com.google.common.collect.Lists;
@@ -163,20 +161,14 @@ protected Color[] getColors() {
return colors.toArray(new Color[colors.size()]);
}

/** {@inheritDoc} */
@Override
protected String getRowId(final int level) {
return originLabels.get(level);
}

// CHECKSTYLE:OFF
/** {@inheritDoc} */
@Override
protected CategoryItemRenderer createRenderer(final GraphConfiguration configuration, final String pluginName, final ToolTipProvider toolTipProvider) {
LineAndShapeRenderer render = new LineAndShapeRenderer(true, false);
render.setBaseStroke(new BasicStroke(2.0f));
return render;
return createLineRenderer();
}
// CHECKSTYLE:ON
}

0 comments on commit 34c837d

Please sign in to comment.