Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed case-sensitivity issue that caused problems in Linux #3

Closed
Closed
Changes from 1 commit
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
c973bd6
Modified test CSS for greater cross-platform compatibility
jamesshore Apr 30, 2011
5e8b49c
Trivial tweaks
jamesshore Apr 30, 2011
bcabccf
Updated estimates for iteration #9
jamesshore May 1, 2011
77dc04f
Minor tweak to projection wording
jamesshore May 1, 2011
b01b129
Refactored BurnupDom to make calculations cleaner
jamesshore May 1, 2011
5efa513
Factored out BurnupChartMetrics class, which cleaned things up nicely
jamesshore May 1, 2011
75d4512
Moved tick-mark metrics from BurnupDom to BurnupChartMetrics
jamesshore May 1, 2011
8e8eb0d
Basic X-axis tick labels; not done yet
jamesshore May 1, 2011
5571d6f
BurnupChartMetrics now takes dictionary rather than list of arguments
jamesshore May 1, 2011
3a3d2ee
BurnupChartMetrics can provide x-axis tick label names
jamesshore May 1, 2011
e7e5c95
X-axis tick marks now show correct label text
jamesshore May 1, 2011
5e5da38
Draws major and minor x-axis tick marks
jamesshore May 2, 2011
9aee2ce
Tweaked appearance of x-axis tick marks
jamesshore May 2, 2011
cd4f878
Improved spacing between X-axis label and X-axis tick labels
jamesshore May 2, 2011
468449b
X-axis tick labels are evenly spaced
jamesshore May 2, 2011
a258925
Reverted stylesheet to fixed-width design (was variable-width for vis…
jamesshore May 2, 2011
59a4e01
Improved window resize performance by removing unneeded re-render whe…
jamesshore May 2, 2011
070b34c
Removed unused code
jamesshore May 2, 2011
914f392
Added internationalization to roadmap; tweaked test name
jamesshore May 2, 2011
309657b
Projection now predicts effort and velocity
jamesshore May 2, 2011
8249846
First stabs at figuring out number of y-axis tickmarks
jamesshore May 2, 2011
9c1d83c
BurnupChartMetrics provides y-axis tickmark locations
jamesshore May 2, 2011
873cb96
Placeholder code for visual testing
jamesshore May 2, 2011
dbaad20
Utility function: BurnupChartMetrics.roundUpEffort
jamesshore May 2, 2011
57ec9b9
Generalized yTickSize function for y-axis tick spacing
jamesshore May 2, 2011
77cb9c0
Cleaned up tick scaling test
jamesshore May 2, 2011
ae0ad12
Reinstated yTickPosition()
jamesshore May 2, 2011
9ccbd70
Renamed yTickSize() to yTickScale()
jamesshore May 2, 2011
32a4f67
BurnupChartMetrics knows when y-axis tick labels should be drawn
jamesshore May 2, 2011
b91519f
Tweaked y-axis tick spacing
jamesshore May 2, 2011
d6579f2
Y-axis tick count rounds up instead of down
jamesshore May 2, 2011
871b3d3
Fixed hard-coded Projections.maxEffort() method (derp)
jamesshore May 2, 2011
d9df6f5
Minor cleanup
jamesshore May 2, 2011
4cf07bd
Now renders Y-axis major ticks
jamesshore May 2, 2011
3f23075
Now renders Y-axis minor ticks
jamesshore May 2, 2011
6263a06
No longer renders ticks on origin
jamesshore May 2, 2011
03c15c1
Fixed problem rendering minor ticks
jamesshore May 2, 2011
42fadcd
Renders Y-axis labels
jamesshore May 3, 2011
809997f
Updated BurnupChartMetrics to provide space for tick labels, but have…
jamesshore May 3, 2011
76ee2ba
Integrated BurnupChartMetric's yTickLabelWidth into BurnupDom
jamesshore May 3, 2011
efb71db
Added padding between Y-axis label and Y-axis tick labels
jamesshore May 3, 2011
fb39cfe
Hacked in final fix for Y-axis tick labels. Will clean up tomorrow.
jamesshore May 3, 2011
e7142dc
Cleaned up code a bit, still pretty ugly overall
jamesshore May 3, 2011
1ffe45c
Corrected number of iterations displayed on burn-up chart x-axis
jamesshore May 3, 2011
fe9b505
Set up data for visual exploration of burn-up chart history
jamesshore May 3, 2011
90f9a1e
Estimates class can return specific iteration
jamesshore May 3, 2011
255ec8e
Renamed Iteration.totalEffort() to effortRemaining()
jamesshore May 3, 2011
c574294
Added Iteration.totalEffort()
jamesshore May 3, 2011
c93eadb
Iterations correctly report effort to date
jamesshore May 3, 2011
d457489
More experimenting, to be rewritten
jamesshore May 3, 2011
8daf7d7
Feature answers cumulativeEstimate() and totalEffort()
jamesshore May 3, 2011
be1e881
Iteration constructs features with cumulative estimate and effort to …
jamesshore May 3, 2011
1116258
Excluded features accumulate after included features
jamesshore May 3, 2011
cca33fc
Removed unneeded Feature.cumulativeEstimate() -- kept Feature.totalEs…
jamesshore May 3, 2011
76ef127
Added BurnupChartMetrics.xForIteration()
jamesshore May 3, 2011
03d4c76
Added BurnupChartMetrics.yForEffort()
jamesshore May 3, 2011
b62fcf8
Experimental stab at drawing historical paths
jamesshore May 3, 2011
a585241
Finished spike of stacked features; now needs to be TDD'd
jamesshore May 4, 2011
26fdf8f
First steps toward TDD'd iteration history in burn-up chart
jamesshore May 4, 2011
5a13689
First step to TDD'd feature stack
jamesshore May 4, 2011
46cc6bd
Renders stacked feature polygons
jamesshore May 4, 2011
5baa315
Displays feature name as tooltip
jamesshore May 4, 2011
41e3b1e
Renders features with proper colors
jamesshore May 4, 2011
6e14311
Added bold lines to emphasize each feature trend
jamesshore May 4, 2011
6a548fb
Removed old charting spike
jamesshore May 4, 2011
a1354eb
Temporary hack to prevent crash when features added in future iterations
jamesshore May 4, 2011
24906bd
Factored out historyPolygon() function
jamesshore May 4, 2011
12d7ec3
Cleaned up history charting tests
jamesshore May 4, 2011
c91f3fe
Added 'Completed' section to burn-up chart
jamesshore May 4, 2011
65909ad
Improved appearance of history graph by clipping edges
jamesshore May 4, 2011
f40b1b2
Shaved off overhanging half-pixel
jamesshore May 4, 2011
8b0a706
Tweaked colors
jamesshore May 4, 2011
18b7ba6
Added Estimates.effortToDate() helper method
jamesshore May 5, 2011
e9dd502
Converted tenPercent() and fiftyPercent() into methods
jamesshore May 5, 2011
cf76237
Experimenting with visualizations for current projection
jamesshore May 5, 2011
aa04694
Another experimental visualization
jamesshore May 5, 2011
26c1bed
renamed JsTestDriver.conf to fix for case-sensitivity in Linux
curious-attempt-bunny May 7, 2011
bc61ace
fixed date related test failures
curious-attempt-bunny May 7, 2011
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Factored out historyPolygon() function
  • Loading branch information
jamesshore committed May 4, 2011
commit 24906bd7cde8bdbdb1efa0fd724c213811326d24
37 changes: 20 additions & 17 deletions src/javascript/burnup_dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,24 @@ rabu.schedule.BurnupDom = function(element, estimates, projections) {
return "rgb(" + r + ", " + g + ", " + b + ")";
}

function historyPolygon(fromX, fromY, toX, toY, strokeColor, fillColor, title) {
var bottom = metrics.bottom;

var polygon = paper.path(moveTo(fromX, fromY) + lineTo(toX, toY) + lineTo(toX, bottom) + lineTo(fromX, bottom) + "Z");
polygon.attr("title", title);
polygon.attr("stroke", "white");
polygon.attr("stroke-width", 0.5);
polygon.attr("fill", fillColor);

var stroke = line(fromX, fromY, toX, toY);
stroke.attr("title", title);
stroke.attr("stroke", strokeColor);
stroke.attr("stroke-width", 3);
stroke.attr("stroke-linecap", "round");

return paper.set(polygon, stroke);
}

function feature(fromX, toX, fromFeatures, toFeatures, featureNumber) {
var bottom = metrics.bottom;
var fromY;
Expand All @@ -128,24 +146,9 @@ rabu.schedule.BurnupDom = function(element, estimates, projections) {
}
var toFeature = toFeatures[featureNumber];
var toY = metrics.yForEffort(toFeature.totalEffort());

var polygon = paper.path(moveTo(fromX, fromY) + lineTo(toX, toY) + lineTo(toX, bottom) + lineTo(fromX, bottom) + "Z");
polygon.attr("title", toFeature.name());
polygon.attr("stroke", "white");
polygon.attr("stroke-width", 0.5);
var whiteness = 200 * (featureNumber + 1) / toFeatures.length;
polygon.attr("fill", rgb(255, whiteness, whiteness));

var myLine = line(fromX, fromY, toX, toY);
myLine.attr("title", toFeature.name());
myLine.attr("stroke", "rgb(100, 0, 0)");
myLine.attr("stroke-width", 3);
myLine.attr("stroke-linecap", "round");

var result = paper.set();
result.push(polygon);
result.push(myLine);
return result;
var whiteness = 200 * (featureNumber + 1) / toFeatures.length;
return historyPolygon(fromX, fromY, toX, toY, rgb(100, 0, 0), rgb(255, whiteness, whiteness), toFeature.name());
}

function iteration(iterationNumber) {
Expand Down