You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this thing: I'm saving the values in seconds, but I need to show them in hours:minutes...
Would be nice if Morris had a formatter to show values on Donuts charts (and other as well)
The text was updated successfully, but these errors were encountered:
I've just pushed a solution to master. You can now pass a function to Morris.Donut to format the value however you need to. Grab the latest morris.min.js and give this a go:
Morris.Donut({element: 'donut',data: /* your data here */formatter: function(x){returnMath.floor(x/60)+':'+Morris.pad2(x%60)}});
Disclaimer: again, a quick+dirty solution - feel free to customize the formatter to fit your needs :)
I came across this thing: I'm saving the values in seconds, but I need to show them in hours:minutes...
Would be nice if Morris had a formatter to show values on Donuts charts (and other as well)
The text was updated successfully, but these errors were encountered: