Chart Js - Vertical (Y-axis values)

I want to prettify the y-axis label values into M (million) and K (thousands) format. Has any one found any solution for this, html/Js script. Since, bar’s value is sum of a particular set of records search group by some value and aggregated by sum.

here is the image,

Did you get an answer on this? Also looking to achieve the same. Thanks!