tiby312 / poloto-project

MIT License
158 stars 10 forks source link

Consider support circle? #136

Closed shuoli84 closed 2 years ago

shuoli84 commented 2 years ago

https://www.w3schools.com/graphics/svg_circle.asp Useful for plot dots on chart with different colors.

tiby312 commented 2 years ago

@shuoli84

Right now you can make the dots in the scatter plot big by changing the stroke width. You can also have each plot have a different color.

source rendered

You unfortunately can't fill it with different color than the stroke because they are just lines with a length of zero. I at one point had it use circles, but i changed it because its not very dense in the svg file. Whereas if you use path, its pretty dense. Like if you have 100 points, there's a lot of text duplication with circle tag.

Is what you're looking for the ability to have scatter dots where you can fill it in and also have a stroke around it? It didn't occur to me that by going path route this ability is lost.