-
So I have stumbled upon a little road block trying to figure out how to animate my text with the scale value. Creating the path was easy as all I needed to do is useDerivedValue which then returns the full path of the x-axis with ticks. But for drawing text I have to always set an x and y value, which has to be a useValue in order to update the position. But I can just loop through scale..current.ticks() as the x values are static then. The text glyps look promising for a second, but it only takes a single string and divides the string into each character. Maybe something like this but for an array of text would be useful aswell ? Is there any example of using the useValue with an array ? https://gyazo.com/433960663be215b4f2d480a041094b49
Text Component
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
I was able to find the op function, which seems to solve my issues. |
Beta Was this translation helpful? Give feedback.
-
Adding a reference to #648 here - guess it is related :) |
Beta Was this translation helpful? Give feedback.
-
Hey @BubbleTrouble14 , In your design, can't we use the axisBottom function? That d3 provides? |
Beta Was this translation helpful? Give feedback.
I was able to find the op function, which seems to solve my issues.