Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13)

Issue 32071: Histogram chart is mostly whitespace

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 2 months ago by Alex
Modified:
11 years, 6 months ago
Reviewers:
Shyam
CC:
testability-explorer-dev_googlegroups.com
Base URL:
http://testability-explorer.googlecode.com/svn/trunk
Visibility:
Public.

Description

Create a new chart package and move existing charting code there. Make a new histogram chart. The old one was a waste of real estate, and didn't show the bad classes at all. This new chart is rendered by the app, rather than using Google charts API (as requested by a user). The Y axis is logarithmic, so one or two classes with a high score still show prominently. Doesn't do the green/yellow/red in the graph like the old one did.

Patch Set 1 #

Total comments: 20
Unified diffs Side-by-side diffs Delta from patch set Stats (+905 lines, -768 lines) Patch
core/pom.xml View 1 chunk +10 lines, -0 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/GoodnessChart.java View 1 chunk +0 lines, -45 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/GoogleChartAPI.java View 1 chunk +0 lines, -142 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/GradeCategories.java View 1 chunk +8 lines, -3 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/Histogram.java View 1 chunk +0 lines, -81 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/HistogramChartUrl.java View 1 chunk +0 lines, -37 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/PieChartUrl.java View 1 chunk +0 lines, -37 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/PieGraph.java View 1 chunk +0 lines, -51 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/SummaryGraphReport.java View 1 chunk +2 lines, -0 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/TextHistogram.java View 1 chunk +2 lines, -0 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/TextReport.java View 1 chunk +1 line, -0 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/chart/CostDistributionChart.java View 1 chunk +61 lines, -0 lines 2 comments Download
core/src/main/java/com/google/test/metric/report/chart/GoodnessChart.java View 1 chunk +45 lines, -0 lines 4 comments Download
core/src/main/java/com/google/test/metric/report/chart/GoogleChartAPI.java View 1 chunk +142 lines, -0 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/chart/Histogram.java View 1 chunk +81 lines, -0 lines 2 comments Download
core/src/main/java/com/google/test/metric/report/chart/HistogramChartUrl.java View 1 chunk +37 lines, -0 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/chart/IntegerTickUnitSource.java View 1 chunk +35 lines, -0 lines 3 comments Download
core/src/main/java/com/google/test/metric/report/chart/PieChartUrl.java View 1 chunk +37 lines, -0 lines 0 comments Download
core/src/main/java/com/google/test/metric/report/chart/PieGraph.java View 1 chunk +53 lines, -0 lines 1 comment Download
core/src/main/java/com/google/test/metric/report/html/HtmlReport.java View 2 chunks +14 lines, -37 lines 2 comments Download
core/src/test/java/com/google/test/metric/report/GoodnessChartTest.java View 1 chunk +0 lines, -49 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/GoogleChartAPITest.java View 1 chunk +0 lines, -40 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/GradeCategoriesTest.java View 1 chunk +0 lines, -58 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/HistogramChartUrlTest.java View 1 chunk +0 lines, -44 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/HistogramTest.java View 1 chunk +0 lines, -63 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/PieChartUrlTest.java View 1 chunk +0 lines, -41 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/PieGraphTest.java View 1 chunk +0 lines, -40 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/chart/CostDistributionChartTest.java View 1 chunk +30 lines, -0 lines 6 comments Download
core/src/test/java/com/google/test/metric/report/chart/GoodnessChartTest.java View 1 chunk +50 lines, -0 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/chart/GoogleChartAPITest.java View 1 chunk +41 lines, -0 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/chart/GradeCategoriesTest.java View 1 chunk +62 lines, -0 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/chart/HistogramChartUrlTest.java View 1 chunk +45 lines, -0 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/chart/HistogramTest.java View 1 chunk +64 lines, -0 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/chart/PieChartUrlTest.java View 1 chunk +43 lines, -0 lines 0 comments Download
core/src/test/java/com/google/test/metric/report/chart/PieGraphTest.java View 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Alex
17 years, 2 months ago (2009-03-30 06:35:56 UTC) #1
Shyam
LGTM. Fix and submit. http://codereview.appspot.com/32071/diff/1/22 File core/src/main/java/com/google/test/metric/report/chart/CostDistributionChart.java (right): http://codereview.appspot.com/32071/diff/1/22#newcode1 Line 1: package com.google.test.metric.report.chart; any copyright ...
17 years, 2 months ago (2009-03-31 04:57:25 UTC) #2
Alex
17 years, 2 months ago (2009-03-31 05:27:34 UTC) #3
Thanks for the review

http://codereview.appspot.com/32071/diff/1/22
File
core/src/main/java/com/google/test/metric/report/chart/CostDistributionChart.java
(right):

http://codereview.appspot.com/32071/diff/1/22#newcode1
Line 1: package com.google.test.metric.report.chart;
On 2009/03/31 04:57:25, Shyam wrote:
> any copyright comments needed ?

Done.

http://codereview.appspot.com/32071/diff/1/3
File core/src/main/java/com/google/test/metric/report/chart/GoodnessChart.java
(right):

http://codereview.appspot.com/32071/diff/1/3#newcode2
Line 2: * Copyright 2007 Google Inc.
On 2009/03/31 04:57:25, Shyam wrote:
> year ?

this is just a move (too bad the code review tool doesn't say so.. maybe if I
used the python uploader?)

http://codereview.appspot.com/32071/diff/1/3#newcode18
Line 18: public class GoodnessChart extends GoogleChartAPI {
On 2009/03/31 04:57:25, Shyam wrote:
> why not use jfreechart or googlechartapi for all ? or is that the plan, but ur
> doing it in iterations ?

Yes, I think I ought to replace them all, good point. I need to get a handle on
all the graphs in the current codebase and do some more refactors probably.

http://codereview.appspot.com/32071/diff/1/18
File core/src/main/java/com/google/test/metric/report/chart/Histogram.java
(right):

http://codereview.appspot.com/32071/diff/1/18#newcode22
Line 22: public class Histogram {
On 2009/03/31 04:57:25, Shyam wrote:
> i'm assuming all of these are just moves into this package ?

yup, just moves

http://codereview.appspot.com/32071/diff/1/33
File
core/src/main/java/com/google/test/metric/report/chart/IntegerTickUnitSource.java
(right):

http://codereview.appspot.com/32071/diff/1/33#newcode1
Line 1: package com.google.test.metric.report.chart;
On 2009/03/31 04:57:25, Shyam wrote:
> copyrihgt

not actually using this class anymore.

http://codereview.appspot.com/32071/diff/1/6
File core/src/main/java/com/google/test/metric/report/html/HtmlReport.java
(right):

http://codereview.appspot.com/32071/diff/1/6#newcode59
Line 59: public String getHistogram() {
On 2009/03/31 04:57:25, Shyam wrote:
> is this still a histogram ?

yes, it still is - histogram shows the distribution

http://codereview.appspot.com/32071/diff/1/21
File
core/src/test/java/com/google/test/metric/report/chart/CostDistributionChartTest.java
(right):

http://codereview.appspot.com/32071/diff/1/21#newcode1
Line 1: package com.google.test.metric.report.chart;
On 2009/03/31 04:57:25, Shyam wrote:
> copyright

Done.

http://codereview.appspot.com/32071/diff/1/21#newcode17
Line 17: protected void setUp() throws Exception {
On 2009/03/31 04:57:25, Shyam wrote:
> get rid of it, its useless

Done.

http://codereview.appspot.com/32071/diff/1/21#newcode21
Line 21: public void testCreateChart() throws Exception {
On 2009/03/31 04:57:25, Shyam wrote:
> is this test even testing anything ? delete or revert if no asseerts

it's mostly to make sure it doesn't throw exceptions, then the resulting chart
has to be manually inspected. Added asserts that the file is created and has
size > 1
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b