data-ui icon indicating copy to clipboard operation
data-ui copied to clipboard

Histogram X axis label rotate and sorting 'categorical' tick problem

Open caglarbayatli opened this issue 5 years ago • 3 comments

Xaxis label angle does not work properly and Xaxis "tickLabelComponent" prop is not used, I suppose. And Im working with pre-binned data and data order does not matter to histogram bar series, X axis sorts ticks anyway.

Thanks

caglarbayatli avatar Jan 29 '20 09:01 caglarbayatli

Same problem here! Did you solve this?

Genarito avatar Feb 23 '21 14:02 Genarito

Hi @Genarito , I have solved the angle myself, however X axis labels are still sorted by library anyway. I've used tickLabelProps like, tickLabelProps={()=>{return {angle: 315, fontSize: 10, textAnchor: "end", dy: -5 }}}

acaglarbayatli avatar Feb 25 '21 07:02 acaglarbayatli

Thank you so much for you answer, unfortunatelly my problem was that the object keys where not sorted

Genarito avatar Feb 25 '21 15:02 Genarito