Create a combo chart in pygal?

Is it possible to create a single graph with a linear series and a ruler?

chart = pygal.Line() chart.x_labels = 'Red', 'Blue', 'Green' chart.y_labels = .0001, .0003, .0004, .00045, .0005 chart.add('line', [.0002, .0005, .00035]) 
+8
python pygal
source share
2 answers

The answer can be found in the documentation at http://www.pygal.org/en/stable/documentation/web.html .

 <!DOCTYPE html> <html> <head> <!-- ... --> </head> <body> <figure> <embed type="image/svg+xml" src="/mysvg.svg" /> </figure> </body> </html> 

Duplicating the line in the <figure> allows you to vertically combine diagrams, aligning them to the left of the screen. Using CSS and defining two curly tags, you can horizontally align two shapes.

+1
source share

In response to your request from the pygal github tracker: no

https://github.com/Kozea/pygal/issues/46

+1
source share

All Articles