Skip to content
This repository was archived by the owner on Aug 31, 2026. It is now read-only.

Commit 8812937

Browse files
committed
Tweeks to Throughput - that and TIP working
1 parent 40444a8 commit 8812937

10 files changed

Lines changed: 422 additions & 178 deletions

examples/TIP.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
var userConfig = {
77
subTitle: 'Stories In-Progress to Accepted',
88
debug: false,
9-
daysToShow: 105,
10-
asOf: "2012-10-15", // Optional. Only supply if want a specific time frame. Do not send in new Date().toISOString().
9+
trace: true,
10+
daysToShow: 120,
11+
// asOf: "2012-10-15", // Optional. Only supply if want a specific time frame. Do not send in new Date().toISOString().
1112
showStillInProcess: false,
1213
statePredicate: {ScheduleState:{$lt:"Accepted", $gte:"In-Progress"}},
1314
type: 'HierarchicalRequirement',
@@ -28,7 +29,8 @@
2829

2930
// Feature Aging
3031
userConfig.subTitle = 'Features In Dev and less than 100% done'
31-
userConfig.showStillInProcess = false,
32+
userConfig.showStillInProcess = false
33+
userConfig.daysToShow = 365
3234
userConfig.statePredicate = {"State":"In Dev", "PercentDoneByStoryCount":{$lt:1,$gt:0}}
3335
userConfig.type = 'PortfolioItem/Feature'
3436
userConfig.leafOnly = false

examples/throughput.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
<script type="text/javascript"">
66
var userConfig = {
77
subTitle: 'Features moving out of "In Dev"',
8-
debug: false,
9-
// asOf: "2012-10-15", // Optional. Only supply if want a specific time frame. Do not send in new Date().toISOString().
8+
// debug: true,
9+
// trace: true,
10+
// asOf: "2012-11-01", // Optional. Only supply if want a specific time frame. Do not send in new Date().toISOString().
1011
granularity: 'month',
1112
numberOfPeriodsToShow: 13,
1213
// fieldsToSum: ['LeafStoryCount'] // Not supported yet. Defaults to count.
@@ -54,10 +55,12 @@
5455
createVisualization = function(visualizationData) {
5556

5657
if (typeof visualizationData !== "undefined" && visualizationData !== null) {
57-
categories = visualizationData.categories
58-
series = visualizationData.series
58+
categories = visualizationData.categories;
59+
series = visualizationData.series;
60+
ids = visualizationData.ids;
61+
countValues = visualizationData.countValues;
5962

60-
charts.columnChart = new Highcharts.Chart({
63+
charts.chart = new Highcharts.Chart({
6164
chart: {
6265
renderTo: 'chart-container',
6366
defaultSeriesType: 'column',
@@ -102,6 +105,10 @@
102105
} else {
103106
s += point.category;
104107
};
108+
if (userConfig.debug) {
109+
console.log(ids[point.x]);
110+
console.log(countValues[point.x]);
111+
}
105112
return s;
106113
}
107114
},

lib/TIPVisualizer.js

Lines changed: 21 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ThroughputVisualizer.js

Lines changed: 67 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)