center_text: raw_usage_text,
responsive: true,
legend: {display: false},
- animation: {duration: 0}
+ animation: {duration: 0},
+ tooltips: {
+ callbacks: {
+ label: function(tooltipItem, chart) {
+ return chart.labels[tooltipItem.index] + ": " +
+ rivets.formatters.dimless_binary(chart.datasets[0].data[tooltipItem.index]);
+ }
+ }
+ }
}
});
options: {
responsive: true,
legend: {display: false},
- animation: {duration: 0}
+ animation: {duration: 0},
+ tooltips: {
+ callbacks: {
+ label: function(tooltipItem, chart) {
+ return chart.labels[tooltipItem.index] + ": " +
+ rivets.formatters.dimless_binary(chart.datasets[0].data[tooltipItem.index]);
+ }
+ }
+ }
}
});
}