Fix missing label on graphs
This commit is contained in:
+1
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user