-
Hey im trying to round my Output.... `
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
no one? |
Beta Was this translation helpful? Give feedback.
-
you can add a formatter below your label property: |
Beta Was this translation helpful? Give feedback.
you can add a formatter below your label property:
formatter: function () { let sum = 0; for (let i = 0; i < array.length; i++) { sum += array[i]; } let average = sum / array.length; return (average.toFixed(2) + '%'); }