State timeline value into vertical

I am using a state timeline graph to visualise my values inside the graph, but unfortunately it’s overriding each other, is there any way where I can switch the value into vertical inside the graph?

Also I am using a discrete graph in which I am unable to map the colors for the values.