Small visual change in device/country charts
This commit is contained in:
parent
2df265009c
commit
3b39f619b1
1 changed files with 4 additions and 4 deletions
|
@ -212,7 +212,7 @@ module.exports.statsClickedSubscribersByColumn = (campaign, linkId, request, col
|
|||
}
|
||||
|
||||
let data = {};
|
||||
let dataPercent = [];
|
||||
let dataList = [];
|
||||
let total = 0;
|
||||
|
||||
rows.forEach((row, index) => {
|
||||
|
@ -225,10 +225,10 @@ module.exports.statsClickedSubscribersByColumn = (campaign, linkId, request, col
|
|||
});
|
||||
Object.keys(data).forEach(key => {
|
||||
let name = key + ': ' + data[key];
|
||||
let value = parseInt(data[key] * 100 / total, 10);
|
||||
dataPercent.push([name, value]);
|
||||
let value = data[key];
|
||||
dataList.push([name, data[key]]);
|
||||
});
|
||||
return callback(null, dataPercent, total);
|
||||
return callback(null, dataList, total);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue