Skip to content

Commit

Permalink
Merge 508e57f into 0916743
Browse files Browse the repository at this point in the history
  • Loading branch information
orjoola committed Oct 31, 2013
2 parents 0916743 + 508e57f commit cfa9b4f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lib/joolaio.visualisation.dashboard.Bar.js
Expand Up @@ -415,7 +415,7 @@ joolaio.visualisation.dashboard.Bar.prototype.update = function (sender, metrics

if (totalsum - sum > 0) {
//console.log('not shown from xaxis');
result.push('Other');
result.push('Not shown');
}
//console.log('result', result);
return result;
Expand Down Expand Up @@ -850,7 +850,7 @@ joolaio.visualisation.dashboard.Bar.prototype.update = function (sender, metrics
//console.log('result', result);

if (totalsum - sum > 0) {
var name = 'Other';
var name = 'Not Shown';
var y = totalsum - sum;
result.push({name: name, y: y, formattedy: 0, color: joolaio.colors[11]});

Expand Down Expand Up @@ -908,7 +908,7 @@ joolaio.visualisation.dashboard.Bar.prototype.update = function (sender, metrics
}

if (totalsum - sum > 0) {
var name = 'Other';
var name = 'Not shown';
var y = totalsum - sum;

//console.log(y);
Expand Down
6 changes: 3 additions & 3 deletions lib/joolaio.visualisation.dashboard.BarTable.js
Expand Up @@ -279,8 +279,8 @@ joolaio.visualisation.dashboard.BarTable.prototype.fetch = function (sender, con
sum2 += parseFloat(item.data.Result.Rows[i].Values[2]);
}

lastRow.Values[0] = 'Other';
lastRow.FormattedValues[0] = 'Other';
lastRow.Values[0] = 'Not shown';
lastRow.FormattedValues[0] = 'Not shown';

lastRow.Values[1] = sum1;
lastRow.FormattedValues[1] = joolaio.string.formatNumber(sum1, 0, true);
Expand Down Expand Up @@ -358,7 +358,7 @@ joolaio.visualisation.dashboard.BarTable.prototype.update = function (sender, di
var $bar = $('<div class="tablebar" style="width:' + row.percentage * 100 + '%"></div>');
$barwrapper.append($bar);

if (row.FormattedValues[0] == 'Other' && index == series[0].Rows.length - 1)
if (row.FormattedValues[0] == 'Not shown' && index == series[0].Rows.length - 1)
$bar.css({'background-color': joolaio.colors[11]});
else
$bar.css({'background-color': joolaio.colors[0]});
Expand Down
6 changes: 3 additions & 3 deletions lib/joolaio.visualisation.dashboard.Pie.js
Expand Up @@ -400,7 +400,7 @@ joolaio.visualisation.dashboard.Pie.prototype.update = function (sender, dimensi
});

if (100 - Math.floor(sum) > 0) {
var name = 'Other';
var name = 'Not shown';
var y = 100 - sum;
result.push({name: name, y: y, color: joolaio.colors[11]});
}
Expand Down Expand Up @@ -458,7 +458,7 @@ joolaio.visualisation.dashboard.Pie.prototype.update = function (sender, dimensi
});

if (100 - Math.floor(sum) > 0) {
var name = 'Other';
var name = 'Not shown';
var y = 100 - sum;
result.push({name: name, y: y, color: joolaio.colors[11]});
}
Expand Down Expand Up @@ -507,7 +507,7 @@ joolaio.visualisation.dashboard.Pie.prototype.update = function (sender, dimensi


if (totalsum - shownsum > 0) {
var name = 'Other';
var name = 'Not shown';
var y = 100 - sum;
result.push({name: name, y: y, color: joolaio.colors[11], value: joolaio.string.formatNumber(totalsum - shownsum, 0, true), seriesname: columns[columns.length - 1].name});
}
Expand Down
4 changes: 2 additions & 2 deletions lib/joolaio.visualisation.dashboard.Table.js
Expand Up @@ -278,8 +278,8 @@ joolaio.visualisation.dashboard.Table.prototype.fetch = function (sender, contai
sum2 += parseFloat(item.data.Result.Rows[i].Values[2]);
}

lastRow.Values[0] = 'Other';
lastRow.FormattedValues[0] = 'Other';
lastRow.Values[0] = 'Not shown';
lastRow.FormattedValues[0] = 'Not shown';

lastRow.Values[1] = sum1;
sum1 = joolaio.string.formatNumber(sum1, 0, true);
Expand Down

0 comments on commit cfa9b4f

Please sign in to comment.