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