Blog Archive for November 16, 2010

Python Code to Generate SVG Pie Chart

November 16, 2010

Here's some code that will generate an SVG pie chart from Python.

Set lSlices equal to a tuple containing the percentages you want to display.

import math

lSlices = (25,25,45,5) # percentages to show in pie

lOffsetX = 150
lOffsetY = 150 …

Tags: svg python pie