word cloud: return percents
This commit is contained in:
committed by
Vasyl Nakvasiuk
parent
f1d1a3f606
commit
c70fa41d69
@@ -15,3 +15,7 @@
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.your_words{
|
||||
font-size: 0.85em;
|
||||
display: block;
|
||||
}
|
||||
@@ -227,7 +227,7 @@ define('WordCloudMain', ['logme'], function (logme) {
|
||||
}
|
||||
|
||||
$.each(response.student_words, function (word, stat) {
|
||||
studentWordsKeys.push(word);
|
||||
studentWordsKeys.push('<strong>' + word + '</strong> (' + (100 * (stat / response.total_count)).toFixed(2) + '%)');
|
||||
});
|
||||
studentWordsStr = '' + studentWordsKeys.join(', ');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user