Skip to content

Dotted LineCartesianLayer #938

Answered by Gowsky
ivaylopenevmg asked this question in Questions
Oct 30, 2024 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

Hello, is it possible to have a dotted line for a LineCartesianLayer?

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.

I might recommend looking into implementing your own LineCartesianLayer.Line by creating your own equivalent of LineCartesianLayer.rememberLine

You don't necessarily need a Line.rememberLine equivalent. All you have to do is create a Line subclass and apply DashPathEffect to Line.linePaint. You can instantiate the subclass normally and use remember directly.

LineFill already draws a black …

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Tyler-Lopez
Comment options

Comment options

You must be logged in to vote
5 replies
@ivaylopenevmg
Comment options

@spencerhowell
Comment options

@Gowsky
Comment options

@spencerhowell
Comment options

@ivaylopenevmg
Comment options

Answer selected by ivaylopenevmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants