First/last data points on X-axis #947
Unanswered
nullsafety
asked this question in
Questions
Replies: 1 comment
-
Hello, @nullsafety. First, this seems to be a question and not a bug report, so I'm converting it to a discussion. Please see here. Second, we need to see your code to assist you. Please share a runnable example that demonstrates the behavior you're referring to. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to reproduce
I have an issue similar to previous ones, such as this one. However, my problem is not that the last label the library tries to render is missing—it's that the library doesn't attempt to render the last point at all. I've also tried adjusting offsets, but that didn't help. As I understand it, in the current version of the library, the default padding is configured to ensure that extreme values are displayed without being replaced by "...".
I attempted to add points manually by implementing my own
ItemPlacer
. I used the code fromAlignedHorizontalAxisItemPlacer
and added mandatory rendering of the last data point ingetLabelValues
, which just looked like this:labelValues.add(fullXRange.endInclusive)
However, the data is still displayed as "..." instead of showing the actual values.
I also assumed that the issue might be related to the step size and tried to make it consistent. But when I did this, all points were displayed as "...".
It seems like these labels need to be synchronized with some other data, but I can't figure out what they need to be synchronized with.
Observed behavior
Expected behavior
Like this but in case 03.11 is last point in the data:
Vico version(s)
2.0.0-beta.2
Android version(s)
14
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions