react-vis icon indicating copy to clipboard operation
react-vis copied to clipboard

How to Set tickTotal for xType="ordinal"?

Open Holy1990 opened this issue 6 years ago • 3 comments

I have dynamic xAxis value (total number is around 60 - 1000) and the value is an ordinal type (X value not linear, it is String something like 14;23,15:44). But when it is rendered, the xAxis labels will render on each other. Therefore I use "tickLabelAngle" to change it to -90. Look nice if only have total <=60 value on xAxis, but if the total number of value >=60 it still render on each other. So I try to use "tickTotal" to fix the total number of value on xAxis, but not affected at all. Before that, I have tried to plot the lineSerials graph with xType is a linear, it works fine with tickTotal, I able to fix my total number of xAxis tick to 10, but it not work properly when xType is an ordinal type.

How can set the "tickTotal" if the xType is ordinal type? Thank You

Holy1990 avatar May 21 '19 08:05 Holy1990

I'm having the same issue; plotting stock prices the x-axis labels are dates (string). tickTotal does nothing. Can we get a fix for this?

davidbmadsen avatar Nov 27 '19 01:11 davidbmadsen

Do we have a fix for this issue? I'm also having the same issue that tickTotal does nothing at all.

nebulashine avatar Jul 15 '21 08:07 nebulashine

Adding my two cents, tickTotal does nothing. Is it renamed to something else or...

tinder-jeffreylee avatar Jun 29 '22 20:06 tinder-jeffreylee