label scale formatting not working
See original GitHub issueHello ! What happened to the formatting of the scale of values? I have some data values and i want to conver it in time format by moment.js. In old version of Chart.js i did
var options = { scaleLabel: '<%= (moment().set({'+ '"hour": parseInt(parseInt(value) / 3600),'+ '"minute": parseInt(parseInt(value) / 60 % 60),'+ '"second": parseInt(parseInt(value) % 60)'+ '})'+ '.format("H:mm:ss"))%>', tooltipTemplate: '<%= (moment().set({'+ '"hour": parseInt(parseInt(value) / 3600),'+ '"minute": parseInt(parseInt(value) / 60 % 60),'+ '"second": parseInt(parseInt(value) % 60)'+ '})'+ '.format("H:mm:ss"))%>', };
In the latest version i cant format values of Y-axis! How to do it?
https://plnkr.co/edit/VoZEbeZKWQAmknjfRyfD?p=preview
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top GitHub Comments
You can provide a custom function to do the string.
I would also like to know this. I’m trying to format the values as a currency.