Svg polyline | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Svg polyline

Why is my polyline connecting automatically? (First point and last point are connected automatically) This should only happen in polygon right? Why is this happening in polyline

5th Oct 2021, 2:49 AM
Rishi - avatar
1 Answer
+ 4
It defaults to filling it in. Set fill="none" to do what you want like this: <polyline points="10 10,10 50,50 50" fill="none" style="stroke:black; stroke-width:2px" />
5th Oct 2021, 3:52 AM
Josh Greig
Josh Greig - avatar