FormidableLabs / victory-native-xl

A charting library for React Native with a focus on performance and customization.
https://commerce.nearform.com/open-source/victory-native
708 stars 53 forks source link

Is posible to rotate XLabel and add break line on the label text? #275

Open rokkoo opened 5 months ago

rokkoo commented 5 months ago

Question

Im migrating to XL version, in the previous version I was rotating it in the following way:

tickLabels: {
 angle: -45,
 }

Reading the docs there is any prop to rotate or to apply any customs style to XLabel, can you please guide how to achieve it?

image

Also, in the previous version, we had the option on create label in the flowing way:

 `label\n newline`

It was working fine, but with new version this is not possible, on ios its scapped and on android is like is treats as unexpected character.

image

Thanks!

aclec commented 4 months ago

Have you find a solution for the rotate ?

mMarcos208 commented 3 months ago

Any update?

Same here.

marciogabrielsf commented 2 months ago

Any Updates? i'm also updating from v36 and trying to add a line break at the X label. Same problem.

image

francescodbc24 commented 2 months ago

Same problem here, cannot add a line break on the X label graph

MKolisz commented 1 month ago

Looks like its not possible right now :(

bvangraafeiland commented 2 weeks ago

Was looking for this as well - a bit strange that functionality like this (among others) is dropped in a rewrite...