Customizing Bottom-Axis Labels to Show Dates Not Working in Vico 2.0.0-alpha.19 #706
-
I need to customize the bottom-axis labels to show dates instead of numbers. In Vico 1.3.0, this was possible as explained in issue #105. However, the method described does not work in the latest version, Vico 2.0.0-alpha.19. It appears that the series function now only accepts two collections for x and y values, and custom Entry objects can no longer be passed. I attempted to convert dates to milliseconds and pass the equivalent Long values, then convert them back using a value formatter. Unfortunately, this approach results in an ANR. Is customizing bottom-axis labels to show dates still supported in Vico 2.0.0-alpha.19? If so, please provide a solution or workaround for this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello! Yes, it is still supported. Please refer to this wiki page which covers this topic. Also, value formatting should not cause any ANR if done correctly. If you have a crash you need help with, share your code. |
Beta Was this translation helpful? Give feedback.
-
Is there any similar formatting capability for marker's label too? Here is what I've tried so far:
However, I'm not sure how to implement the markerFormatter function. Here is the function signature:
I've read this #696 but it was more about customizing the marker component rather than its value. |
Beta Was this translation helpful? Give feedback.
Hello! Yes, it is still supported. Please refer to this wiki page which covers this topic. Also, value formatting should not cause any ANR if done correctly. If you have a crash you need help with, share your code.