+ 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 https://code.sololearn.com/WQ6tTsrq61wp/?ref=app

5th Oct 2021, 2:49 AM
Rishi
Rishi - avatar
1 Respuesta
+ 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