Having read @nivo
docs and SO threads I've found no solution of my problem which is multi-line format of x-axis values.
I need to see date like this
2022.10.02
14:42:30
but is see 2022.10.02 14:42:30
What I tried is
axisBottom={{
format: value => moment(value).format('DD.MM.YYYY\r\nHH:mm:ss'),
}}
but it gives no effect except space between date part. React component is not acceptable for rendering, callback function must return value only of string
type.
So the question is there a way to create multi-line string?
(image below illustrates current output)