fix: #304. Compare page, shift digit of percentage value
This commit is contained in:
@@ -503,10 +503,7 @@ export default {
|
||||
},
|
||||
label: function(context) {
|
||||
let value = context.parsed.y;
|
||||
|
||||
value = context.parsed.y === 0 ? 0 :
|
||||
context.parsed.y === null ? "n/a" :
|
||||
context.parsed.y.toFixed(2);
|
||||
value = `${(context.parsed.y * 10).toFixed(2)}%`;
|
||||
switch (context.datasetIndex) {
|
||||
case 0: // Primary
|
||||
return `${labelPrimary}: ${value}`;
|
||||
|
||||
Reference in New Issue
Block a user