Make sentiment more usable
This commit is contained in:
@@ -30,11 +30,12 @@ new Chart(ctx, {
|
||||
plugins: {
|
||||
tooltip: {
|
||||
callbacks: {
|
||||
beforeFooter: function(context) {
|
||||
return "Nick: " + full_data[context[0].dataIndex].nick;
|
||||
},
|
||||
footer: function(context) {
|
||||
return "Msg: " + full_data[context[0].dataIndex].text;
|
||||
var foot = "Text: " + full_data[context[0].dataIndex].text + "\n";
|
||||
foot += "Nick: " + full_data[context[0].dataIndex].nick + "\n";
|
||||
foot += "Channel: " + full_data[context[0].dataIndex].channel + "\n";
|
||||
foot += "Net: " + full_data[context[0].dataIndex].net;
|
||||
return foot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user