I want to try plots with pygal; however, when I do render
nothing appears:
xy_chart = pygal.XY()
xy_chart.add('test', [(1,2), (2,2)])
xy_chart.render('test.svg')
Presumably, that's because the format is svg. Can I somehow save the images in standard formats or see them in python using pygal?
I tried to install dependencies for png support, but unfortunately each package requires additional installment of other packages, which eventually leads to errors.
replace the last line with this:
render() returns a string, but it doesn't write a file directly. Try doing this to see what I mean: