In my code of nvd3, I have a range of times which needs to be passed. X-axis contains dates and y-axis contains time and I want it formatted like the following on y-axis:
- 2hrs 30 mins
- 1 day 2 hours 30 mins
- 3 days 4 hours 30 mins
How can I have these dynamically set on y-axis?