diff --git a/src/org/april/agirstatool/core/pages/IssueStatusChartView.java b/src/org/april/agirstatool/core/pages/IssueStatusChartView.java index 5fd33a3..3225e07 100644 --- a/src/org/april/agirstatool/core/pages/IssueStatusChartView.java +++ b/src/org/april/agirstatool/core/pages/IssueStatusChartView.java @@ -38,34 +38,6 @@ public class IssueStatusChartView { private static Logger logger = LoggerFactory.getLogger(IssueStatusChartView.class); - /** - * Builds the grouped. - * - * @param title - * the title - * @param project - * the project - * @return the string - * @throws AgirStatoolException - * the agir statool exception - */ - public static String buildGrouped(final String title, final Project project) throws AgirStatoolException - { - String result; - - StringList labels = new StringList("Maybe", "Active", "Resolved"); - StringList values = new StringList(); - values.append(project.issueStats().getMaybeCount()); - values.append(project.issueStats().getActiveCount()); - values.append(project.issueStats().getResolvedCount()); - - String targetTitle = title + " – " + project.getName(); - result = build(targetTitle, targetTitle, labels, values); - - // - return result; - } - /** * Builds the. * @@ -80,7 +52,7 @@ public class IssueStatusChartView public static String build(final String title, final Project project) throws AgirStatoolException { String result; - + StringList labels = new StringList("Maybe", "New", "Confirmed", "Ongoing", "Waiting", "Resolved"); StringList values = new StringList(); values.append(project.issueStats().getMaybeCount()); @@ -89,10 +61,10 @@ public class IssueStatusChartView values.append(project.issueStats().getOngoingCount()); values.append(project.issueStats().getWaitingCount()); values.append(project.issueStats().getResolvedCount()); - + String targetTitle = title + " – " + project.getName(); result = build(targetTitle, targetTitle, labels, values); - + // return result; } @@ -136,4 +108,32 @@ public class IssueStatusChartView // return result; } + + /** + * Builds the grouped. + * + * @param title + * the title + * @param project + * the project + * @return the string + * @throws AgirStatoolException + * the agir statool exception + */ + public static String buildGrouped(final String title, final Project project) throws AgirStatoolException + { + String result; + + StringList labels = new StringList("Maybe", "Active", "Resolved"); + StringList values = new StringList(); + values.append(project.issueStats().getMaybeCount()); + values.append(project.issueStats().getActiveCount()); + values.append(project.issueStats().getResolvedCount()); + + String targetTitle = title + " – " + project.getName(); + result = build(targetTitle, targetTitle, labels, values); + + // + return result; + } }