Dotted LineCartesianLayer #938
-
QuestionHello, is it possible to have a dotted line for a In the example above I already have I use the following code for the line:
Vico version(s)No response UI framework(s)Jetpack Compose |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi, I might recommend looking into implementing your own |
Beta Was this translation helpful? Give feedback.
-
Hello, thank you for the reply. Creating an equivalent for
|
Beta Was this translation helpful? Give feedback.
-
Dashed/dotted lines aren't supported out of the box at the moment, but as mentioned under #469, we plan on adding such functionality. We want to look into it soon. In the meantime, you can implement this yourself via subclassing.
You don't necessarily need a
Yes, a line mask is drawn regardless of what
That's right.
You need just the
The PR was closed due to inactivity, but as mentioned above, we'll be adding this feature ourselves.
Could you be more specific? Which edge of which column are you referring to? Do you need the start of the line to be where the left edge of the first column stack is? |
Beta Was this translation helpful? Give feedback.
Dashed/dotted lines aren't supported out of the box at the moment, but as mentioned under #469, we plan on adding such functionality. We want to look into it soon. In the meantime, you can implement this yourself via subclassing.
You don't necessarily need a
Line.rememberLine
equivalent. All you have to do is create aLine
subclass and applyDashPathEffect
toLine.linePaint
. You can instantiate the subclass normally and useremember
directly.