Fix missing label on graphs
This commit is contained in:
parent
ea56f41347
commit
c70859e1b0
@ -8,7 +8,7 @@ function loadGraph(container, dataPoints, currency, run) {
|
||||
datasets: [{
|
||||
data: dataPoints.map(point => point.y),
|
||||
}],
|
||||
labels: dataPoints.map(point => `(${new Intl.NumberFormat(navigator.language, { style: 'currency', currency }).format(point.y)})`),
|
||||
labels: dataPoints.map(point => `${point.label} (${new Intl.NumberFormat(navigator.language, { style: 'currency', currency }).format(point.y)})`),
|
||||
},
|
||||
options: {
|
||||
animation: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user