Adição das casas decimais
This commit is contained in:
@@ -530,7 +530,7 @@
|
||||
label: (ctx) => {
|
||||
const idx = ctx.dataIndex;
|
||||
return [
|
||||
` Valor: R$ ${ctx.parsed.y.toFixed(2).replace('.', ',')}`,
|
||||
` Valor: R$ ${ctx.parsed.y.toLocaleString('pt-BR', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
|
||||
` Entregas: ${qtds[idx]}`
|
||||
];
|
||||
}
|
||||
@@ -591,7 +591,7 @@
|
||||
bodyColor: '#ffffff',
|
||||
padding: 12,
|
||||
callbacks: {
|
||||
label: (c) => ` ${c.label}: R$ ${c.parsed.toFixed(2).replace('.', ',')}`
|
||||
label: (c) => ` ${c.label}: R$ ${c.parsed.toLocaleString('pt-BR', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user