Hướng dẫn python code for multiple pie chart - mã python cho nhiều biểu đồ hình tròn

Tôi đang cố gắng hiển thị hai biểu đồ cùng một lúc bằng cách sử dụng matplotlib.

Nhưng tôi phải đóng một biểu đồ sau đó chỉ tôi có thể xem biểu đồ khác. Dù sao thì có cách nào để hiển thị cả biểu đồ hoặc nhiều số đồ thị cùng một lúc.

Đây là mã của tôi

num_pass=np.size(data[0::,1].astype(np.float))
num_survive=np.sum(data[0::,1].astype(np.float))
prop=num_survive/num_pass
num_dead=num_pass-num_survive
#print num_dead


labels='Dead','Survived'
sizes=[num_dead,num_survive]
colors=['darkorange','green']
mp.axis('equal')
mp.title('Titanic Survival Chart')
mp.pie(sizes, explode=(0.02,0), labels=labels,colors=colors,autopct='%1.1f%%', shadow=True, startangle=90)
mp.show()

women_only_stats = data[0::,4] == "female" 
men_only_stats = data[0::,4] != "female" 

# Using the index from above we select the females and males separately
women_onboard = data[women_only_stats,1].astype(np.float)     
men_onboard = data[men_only_stats,1].astype(np.float)

labels='Men','Women'
sizes=[np.sum(women_onboard),np.sum(men_onboard)]
colors=['purple','red']
mp.axis('equal')
mp.title('People on board')
mp.pie(sizes, explode=(0.01,0), labels=labels,colors=colors,autopct='%1.1f%%', shadow=True, startangle=90)
mp.show()

Làm thế nào tôi có thể hiển thị cả hai biểu đồ cùng một lúc?

Hướng dẫn python code for multiple pie chart - mã python cho nhiều biểu đồ hình tròn
    
Hướng dẫn python code for multiple pie chart - mã python cho nhiều biểu đồ hình tròn
  
Hướng dẫn python code for multiple pie chart - mã python cho nhiều biểu đồ hình tròn

Sử dụng hàm PIE () để tạo biểu đồ hình tròn ..

  • Để hiển thị hình, sử dụng phương thức show () ..
  • Bạn có thể vẽ nhiều biểu đồ trong Python không?
  • Các nhãn khu vực được cấu hình với nền màu vàng nhạt và đường viền đen. Đây là bằng cách lấy đối tượng TextBox đại diện cho nguyên mẫu nhãn khu vực bằng piechart.setlabelstyle, sau đó gọi phương thức hộp.setBackground của nó.
  • Các nhãn khu vực được di chuyển bên trong chiếc bánh bằng cách sử dụng piechart.setlabellayout với vị trí nhãn âm.

Sử dụng hàm PIE () để tạo biểu đồ hình tròn ..

#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)

Sử dụng hàm PIE () để tạo biểu đồ hình tròn ..

Sử dụng hàm PIE () để tạo biểu đồ hình tròn ..

Để hiển thị hình, sử dụng phương thức show () ..

Bạn có thể vẽ nhiều biểu đồ trong Python không?

  • Chúng ta có thể làm điều này bằng cách sử dụng Thư viện Python Matplotlib. Có hai cách hiệu quả để vẽ nhiều biểu đồ trong một ô duy nhất bằng cách sử dụng thư viện matplotlib. Sử dụng hàm Subplot () của thư viện matplotlib. Tuỗi một biểu đồ sang biểu đồ khác sẽ giúp chúng tôi trực quan hóa cả biểu đồ trong một biểu đồ.
  • Xem thảo luận
  • Sử dụng hàm PIE () để tạo biểu đồ hình tròn ..

    Để hiển thị hình, sử dụng phương thức show () ..

    Bạn có thể vẽ nhiều biểu đồ trong Python không?

    Chúng ta có thể làm điều này bằng cách sử dụng Thư viện Python Matplotlib. Có hai cách hiệu quả để vẽ nhiều biểu đồ trong một ô duy nhất bằng cách sử dụng thư viện matplotlib. Sử dụng hàm Subplot () của thư viện matplotlib. Tuỗi một biểu đồ sang biểu đồ khác sẽ giúp chúng tôi trực quan hóa cả biểu đồ trong một biểu đồ.Pie Chart is a circular statistical plot that can display only one series of data. The area of the chart is the total percentage of the given data. The area of slices of the pie represents the percentage of the parts of the data. The slices of pie are called wedges. The area of the wedge is determined by the length of the arc of the wedge. The area of a wedge represents the relative percentage of that part with respect to whole data. Pie charts are commonly used in business presentations like sales, operations, survey results, resources, etc as they provide a quick summary.
     

    Xem thảo luận

    Cải thiện bài viết
     

    Lưu bài viết matplotlib.pyplot.pie(data, explode=None, labels=None, colors=None, autopct=None, shadow=False)
    Parameters: 
    data represents the array of data values to be plotted, the fractional area of each slice is represented by data/sum(data). If sum(data)<1, then the data values returns the fractional area directly, thus resulting pie will have empty wedge of size 1-sum(data). 
    labels is a list of sequence of strings which sets the label of each wedge. 
    color attribute is used to provide color to the wedges. 
    autopct is a string used to label the wedge with their numerical value. 
    shadow is used to create shadow of wedge. 
     

    Đọc
    Example: 
     

    Python3

    Bàn luận

    Biểu đồ hình tròn là một biểu đồ thống kê tròn có thể chỉ hiển thị một loạt dữ liệu. Diện tích của biểu đồ là tổng phần trăm của dữ liệu đã cho. Khu vực của các lát của chiếc bánh đại diện cho tỷ lệ phần trăm của các phần của dữ liệu. Những lát bánh được gọi là nêm. Diện tích của nêm được xác định bởi chiều dài của vòng cung của nêm. Khu vực của một cái nêm đại diện cho tỷ lệ phần trăm tương đối của phần đó đối với toàn bộ dữ liệu. Biểu đồ hình tròn thường được sử dụng trong các bài thuyết trình kinh doanh như bán hàng, hoạt động, kết quả khảo sát, tài nguyên, v.v. khi chúng cung cấp một bản tóm tắt nhanh chóng. & NBSP;

    Tạo biểu đồ hình tròn

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)7#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)8#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from0#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from2from3

    API matplotlib có hàm pie () trong mô -đun pyplot của nó tạo ra một biểu đồ hình tròn đại diện cho dữ liệu trong một mảng. & Nbsp; & nbsp;

    Cú pháp: matplotlib.pyplot.pie (data, explode = none, labels = none, colors = none, autopct = none, shadow = false) Tham số Cắt lát được biểu diễn bằng dữ liệu/tổng ​​(dữ liệu). Nếu tổng (dữ liệu)

    Hãy để tạo ra một biểu đồ hình tròn đơn giản bằng cách sử dụng hàm pie (): Ví dụ: & nbsp; & nbsp;

    pyplot as plt1

    Output:   
     

    Hướng dẫn python code for multiple pie chart - mã python cho nhiều biểu đồ hình tròn

    from matplotlib import pyplot as plt

    import numpy as np
    Example 1: 
     

    Python3

    import numpy as np

    import pyplot as plt5

    cars = #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)0#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)1#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)3#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)5#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)7#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)8#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from0#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from2from3

    from4= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)0from7#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from9__12

    cars 7= import3=0#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2=2__12

    Is

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)11#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)12#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)14#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)16#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)01

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)18= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)20#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)21 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)222

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)29 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)30

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)31#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)32= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)34#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)35#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)36 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)37#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)38__

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)31#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)43 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)44#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)45#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)46#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)47

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)48= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)50=import3import4#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2import6import7

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)57= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)59

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)61= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)63 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)64

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60cars 7= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)68

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)70= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)72

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)74= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)76#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)022 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)81

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)83= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)85#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)88= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)90

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)92= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)94#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)95=#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)97import7

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)99

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)11from01=from03#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)11from06=from08#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)11from11=import3#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)23#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from16#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from18#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)23import7

    from222= from24from25=from27#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)01

    from29from30#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)01

    pyplot as plt1

    Đầu ra: & nbsp; & nbsp; 
     

    Hướng dẫn python code for multiple pie chart - mã python cho nhiều biểu đồ hình tròn

    Ví dụ 2: Tạo biểu đồ hình tròn lồng nhau & NBSP; Creating a Nested Pie Chart
     

    Python3

    from matplotlib import pyplot as plt

    import numpy as np

    from39= from41

    cars = #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)0#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)1#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)3#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)5#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)7#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)8#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from0#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from2from3

    from4= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)0from7#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from9__12

    from69#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)0matplotlib 1#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from73from64matplotlib 3#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from77from68

    from69#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)0matplotlib 5#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from83from64matplotlib 7#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2from87from88

    cars 7= import3=0#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2=2__12

    Is

    matplotlib 05matplotlib 06matplotlib 07#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)23matplotlib 09

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)18= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)20#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)21 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)222

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)29 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)30

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)31#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)32= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)34#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)35#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)36 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)37#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)38__

    matplotlib 36import4#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2matplotlib 5#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2matplotlib 41#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2matplotlib 43#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)31#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)43 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)44#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)45#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)46#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)47

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)48= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)50=import3import4#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)2import6import7

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)57= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)59

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)61= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)63 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)64

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60cars 7= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)68

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)70= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)72

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)74= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)76#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)022 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)81

    matplotlib 74matplotlib 98=import00#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)83= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)85#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    matplotlib 74import08=import10#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)01

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)88= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)90

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)92= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)94#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)95=#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)97import7

    from222= from24from25=from27#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)01

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)74= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)76#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)022 #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)81

    matplotlib 74matplotlib 98=import00#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)60#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)83= #!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)85#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)6

    matplotlib 74import08=import10#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)01

    import50import51import52=import54#!/usr/bin/python # The ChartDirector for Python module is assumed to be in "../lib" import sys, os sys.path.insert(0, os.path.join(os.path.abspath(sys.path[0]), "..", "lib")) from pychartdir import * def createChart(chartIndex) : # The data for the pie chart data0 = [25, 18, 15] data1 = [14, 32, 24] data2 = [25, 23, 9] # The labels for the pie chart labels = ["Software", "Hardware", "Services"] # Create a PieChart object of size 180 x 160 pixels c = PieChart(180, 160) # Set the center of the pie at (90, 80) and the radius to 60 pixels c.setPieSize(90, 80, 60) # Set the border color of the sectors to white (ffffff) c.setLineColor(0xffffff) # Set the background color of the sector label to pale yellow (ffffc0) with a black border # (000000) c.setLabelStyle().setBackground(0xffffc0, 0x000000) # Set the label to be slightly inside the perimeter of the circle c.setLabelLayout(CircleLayout, -10) # Set the title, data and colors according to which pie to draw if chartIndex == 0 : c.addTitle("Alpha Division", "Arial Bold", 8) c.setData(data0, labels) colors0 = [0xff3333, 0xff9999, 0xffcccc] c.setColors2(DataColor, colors0) elif chartIndex == 1 : c.addTitle("Beta Division", "Arial Bold", 8) c.setData(data1, labels) colors1 = [0x33ff33, 0x99ff99, 0xccffcc] c.setColors2(DataColor, colors1) else : c.addTitle("Gamma Division", "Arial Bold", 8) c.setData(data2, labels) colors2 = [0x3333ff, 0x9999ff, 0xccccff] c.setColors2(DataColor, colors2) # Output the chart c.makeChart("multipie%s.png" % chartIndex) createChart(0) createChart(1) createChart(2)01

    import56

    pyplot as plt1

    Output:   
     

    Hướng dẫn python code for multiple pie chart - mã python cho nhiều biểu đồ hình tròn


    Làm cách nào để tạo biểu đồ nhiều hình trong matplotlib?

    plt.figure (1) # Tạo biểu đồ thứ hai ở đây và chỉ định tất cả các tham số bên dưới.plt.figure (3) # Tạo biểu đồ thứ ba ở đây và chỉ định tất cả các tham số bên dưới. figure(1) # Create second chart here and specify all parameters below. plt. figure(3) # Create third chart here and specify all parameters below.

    Làm cách nào để trình bày nhiều biểu đồ hình tròn?

    Nhấp vào biểu đồ đầu tiên và sau đó giữ phím CTRL khi bạn nhấp vào từng biểu đồ khác để chọn tất cả. Định dạng nhấp chuột> Nhóm> Nhóm.Tất cả các biểu đồ hình tròn hiện được kết hợp như một con số.Họ sẽ di chuyển và thay đổi kích thước như một hình ảnh. Click Format > Group > Group. All pie charts are now combined as one figure. They will move and resize as one image.

    Làm thế nào để bạn tạo ra một biểu đồ hình tròn lồng nhau trong Python?

    Matplotlib với Python..
    Đặt kích thước hình và điều chỉnh phần đệm giữa và xung quanh các ô phụ ..
    Tạo một con số và một tập hợp các ô con ..
    Khởi tạo kích thước thay đổi, tạo Vals, CMAP, Outer_Colors, Dữ liệu bên trong_colors bằng cách sử dụng Numpy ..
    Sử dụng hàm PIE () để tạo biểu đồ hình tròn ..
    Để hiển thị hình, sử dụng phương thức show () ..

    Bạn có thể vẽ nhiều biểu đồ trong Python không?

    Chúng ta có thể làm điều này bằng cách sử dụng Thư viện Python Matplotlib.Có hai cách hiệu quả để vẽ nhiều biểu đồ trong một ô duy nhất bằng cách sử dụng thư viện matplotlib.Sử dụng hàm Subplot () của thư viện matplotlib.Tuỗi một biểu đồ sang biểu đồ khác sẽ giúp chúng tôi trực quan hóa cả biểu đồ trong một biểu đồ.using the matplotlib python library. There are two effective ways to plot multiple graphs in a single plot by using the matplotlib library. Using subplot() function of Matplotlib library. Superimposing one graph to another graph will help us visualize both the graph in a single plot.