A small exampe of how you can make your tick labels display as you’d like them to.
note D3 can provide its own formatter fuctions for common cases here