Exemplo n.º 1
0
def make_piechart():
    wb = openpyxl.load_workbook(self.name + '.xlsx')
    ws = wb.worksheets[0]

    piechart = chart.PieChart()

    values = chart.Reference(ws, min_row=1, min_col=4, max_row=100, max_col=4)
    piechart.add_data(values, titles_from_data=True)

    xvalues = chart.Reference(ws, min_row=2, min_col=2, max_row=100, max_col=2)
    piechart.set_categories(xvalues)

    ws.add_chart(piechart, 'G2')
    wb.save(self.name + '.xlsx')
Exemplo n.º 2
0
def graph(request):
    e = "UEsDBAoAAAAIAGU+clKTJA+PkgEAAGYMAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbM2Xy27CMBBF9/2KyFuUmNCW0orAorTLFqn0A9x4Qiwc27LN6+87CRRVFQ8hkOpNrMQz9x6PotG4P1xVMlqAdUKrjKRJm0Sgcs2Fmmbkc/Ia90jkPFOcSa0gI2twZDi46U/WBlyEycplpPTePFHq8hIq5hJtQOFOoW3FPL7aKTUsn7Ep0E673aW5Vh6Uj32tQQb9ERRsLn30ssLPGxAL0pHoeRNYe2WEGSNFzjzu04Xif1zirUOCmU2MK4VxLQwgdK9DvXPYYJv3jpWxgkM0Zta/sQqj6ErSpbazL61nyXGRPZS6KEQOXOfzClMSZyww7koAX8mkWZOKCdU67d8EO9os6ZVBdvpncnQC4bgNhOMuEI77QDi6gXA8BMLRC4TjMRCOtB0KSCgdNQ2lpaah9NQ0lKaa/ldX9ThlweZ5+W/ayJwwdH4twV172GlETzmXzAL/8BbH0asD/NY+MiguLnTF/JFlS3Q5dFAMHVttHA7GFs4/5c/kW2fHBoXAenG8tDtHlL64rFDXigPf402ba8LgG1BLAwQKAAAAAABlPnJSAAAAAAAAAAAAAAAABgAAAF9yZWxzL1BLAwQKAAAACABlPnJS8p9J2ukAAABLAgAACwAAAF9yZWxzLy5yZWxzrZLBTsMwDEDvfEXk+5puSAihpbsgpN0mND7AJG4btY2jxIPu74mQQAyNaQeOceznZ8vrzTyN6o1S9hwMLKsaFAXLzofOwMv+aXEPKgsGhyM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9jb3JlLnhtbFBLAQIUAAoAAAAIAGU+clLksJS46AEAABwGAAAPAAAAAAAAAAAAAAAAAJRRAAB4bC93b3JrYm9vay54bWxQSwUGAAAAAB4AHgCgBwAAqVMAAAAA"
    d = base64.b64decode(e)
    s = BytesIO(d)
    workbook = load_workbook(filename=s)
    for i in range(3, len(workbook.sheetnames)):
        workbook.active = i
        sheet = workbook.active
        # text =  sheet.cell(row=3, column=2).value
        # no_response = sheet.cell(row=4, column=2).value
        # print("tex>>>>>>>>>>>>>>>>>", text, no_response)it
        chart1 = chart.BarChart()
        chart1.type = "col"
        chart1.style = 10
        data = chart.Reference(worksheet=sheet,
                               min_col=1,
                               min_row=3,
                               max_col=2,
                               max_row=sheet.max_row)
        chart1.add_data(data, titles_from_data=True, from_rows=True)
        sheet.add_chart(chart1, "D2")
    e = BytesIO(save_virtual_workbook(workbook))
    rs = base64.b64encode(e.getvalue())
    print(rs)
    ds = base64.b64decode(rs)
    return HttpResponse(
        ds,
        content_type=
        "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
Exemplo n.º 3
0
def make_chart(path):
    wb = load_workbook(path, data_only=True)
    ws = wb.active
    chart_val = chart.LineChart()
    chart_val.title = "주가_일별_등락패턴"
    chart_val.x_axis.title = "date"
    chart_val.y_axis.title = "stock"

    #data영역임.
    datas = chart.Reference(ws,
                            min_col=1,
                            min_row=2,
                            max_col=ws.max_column,
                            max_row=ws.max_row)
    chart_val.add_data(datas, from_rows=True, titles_from_data=True)
    #카테고리영역임. min_col,min_row는 시작범위 cell번호이고, max_col,max_row는 최대 범위 cell번호 이다. min_col = 2이므로 2열부터 시작이고, min_row = 1라서 1행부터 시작, max_col = 21 21열까지이고, max_row = 1 1행까지임.
    cats = chart.Reference(ws, min_col=2, min_row=1, max_col=21, max_row=1)
    chart_val.set_categories(cats)
    #어느 cell에 차트를 그릴건지 정함.
    ws.add_chart(chart_val, "A17")
    wb.save("./차트결과.xlsx")
    wb.close()
Exemplo n.º 4
0
    def create_chart(self):
        """Class method to accept all given chart parameters and generate a simple chart to the intended sheet and cell."""
        try:
            chart_type = self.spin.get()
            if chart_type == "Line":
                self.chart = opc.LineChart()  # Creates a line chart

            elif chart_type == "Bar":
                self.chart = opc.BarChart()  # Creates a bar chart

            elif chart_type == "Area":
                self.chart = opc.AreaChart()  # Creates an area chart

            elif chart_type == "Pie":
                self.chart = opc.PieChart()  # Creates a pie chart

            else:
                self.chart = opc.DoughnutChart()  # Creates a doughnut chart

            self.chart.title = self.chart_entry.get()  # Sets the chart title
            self.chart.y_axis.title = self.y_axis.get(
            )  # Sets the y axis title
            self.chart.x_axis.title = self.x_axis.get(
            )  # Sets the x axis title
            destination_cell = self.destination_entry.get(
            )  # Sets the cell which the chart will be anchored
            chart_range = self.ws + "!" + self.range.get()
            data = opc.Reference(self.current_sheet, range_string=chart_range)
            self.chart.add_data(data)  # Adds data from range to chart
            self.current_sheet.add_chart(
                self.chart,
                destination_cell)  # Add the chart to the desired cell

            self.wb.save(self.edit_path)  # Saves the file

        except:
            pass
Exemplo n.º 5
0
def main():

    # predefined list of male and female names
    male_names_list = [
        "James", "John", "Robert", "Michael", "William", "David", "Richard",
        "Joseph", "Thomas", "Charles", "Christopher", "Daniel", "Matthew",
        "Anthony", "Donald", "Mark", "Paul", "Steven", "Andrew", "Kenneth",
        "Joshua", "Kevin", "Brian", "George", "Edward", "Ronald", "Timothy",
        "Jason", "Jeffrey", "Ryan", "Jacob", "Gary", "Nicholas", "Eric",
        "Jonathan", "Stephen", "Larry", "Justin", "Scott", "Brandon",
        "Benjamin", "Samuel", "Frank", "Gregory", "Raymond", "Alexander",
        "Patrick", "Jack", "Dennis", "Jerry", "Tyler", "Aaron", "Jose",
        "Henry", "Adam", "Douglas", "Nathan", "Peter", "Zachary", "Kyle",
        "Walter", "Harold", "Jeremy", "Ethan", "Carl", "Keith", "Roger",
        "Gerald", "Christian", "Terry", "Sean", "Arthur", "Austin", "Noah",
        "Lawrence", "Jesse", "Joe", "Bryan", "Billy", "Jordan", "Albert",
        "Dylan", "Bruce", "Willie", "Gabriel", "Alan", "Juan", "Logan",
        "Wayne", "Ralph", "Roy", "Eugene", "Randy", "Vincent", "Russell",
        "Louis", "Philip", "Bobby", "Johnny", "Bradley"
    ]
    female_names_list = [
        "Mary", "Patricia", "Jennifer", "Linda", "Elizabeth", "Barbara",
        "Susan", "Jessica", "Sarah", "Karen", "Nancy", "Lisa", "Margaret",
        "Betty", "Sandra", "Ashley", "Dorothy", "Kimberly", "Emily", "Donna",
        "Michelle", "Carol", "Amanda", "Melissa", "Deborah", "Stephanie",
        "Rebecca", "Laura", "Sharon", "Cynthia", "Kathleen", "Amy", "Shirley",
        "Angela", "Helen", "Anna", "Brenda", "Pamela", "Nicole", "Samantha",
        "Katherine", "Emma", "Ruth", "Christine", "Catherine", "Debra",
        "Rachel", "Carolyn", "Janet", "Virginia", "Maria", "Heather", "Diane",
        "Julie", "Joyce", "Victoria", "Kelly", "Christina", "Lauren", "Joan",
        "Evelyn", "Olivia", "Judith", "Megan", "Cheryl", "Martha", "Andrea",
        "Frances", "Hannah", "Jacqueline", "Ann", "Gloria", "Jean", "Kathryn",
        "Alice", "Teresa", "Sara", "Janice", "Doris", "Madison", "Julia",
        "Grace", "Judy", "Abigail", "Marie", "Denise", "Beverly", "Amber",
        "Theresa", "Marilyn", "Danielle", "Diana", "Brittany", "Natalie",
        "Sophia", "Rose", "Isabella", "Alexis", "Kayla", "Charlotte"
    ]
    names_lists_tuple = (male_names_list, female_names_list)

    # filename indices limits
    min_index = 1
    max_index = 11

    # generate files
    for index in range(min_index, max_index):

        # Create new workbook
        wb = Workbook()
        ws = wb.active

        # Generate first line (labels)
        labels = ["id", "name", "grade"]
        ws.append(labels)

        # Generate remaining 49 lines (actual values)
        min_row = 2
        max_row = 51
        for row in range(min_row, max_row):
            # generate random uid
            min_uid = 10**8
            max_uid = 10**9
            random_uid = randrange(min_uid, max_uid)

            # generate random name
            random_list = choice(names_lists_tuple)
            random_name = choice(random_list)

            # generate random grade
            min_grade = 0
            max_grade = 101
            random_grade = randrange(min_grade, max_grade)

            # generate row with random values
            random_row = (random_uid, random_name, random_grade)

            # append row to workbook
            ws.append(random_row)

        # generate grades distribution chart
        min_col = max_col = labels.index("grade") + 1
        grades_values = chart.Reference(ws, min_col, min_row, max_col, max_row)
        grades_chart = chart.BarChart()
        grades_chart.add_data(grades_values)

        # add generated chart to worksheet
        chart_row = 1
        chart_col = ascii_lowercase[len(labels)]
        ws.add_chart(grades_chart, f"{chart_col}{chart_row}")

        # Write to new .xlsx file
        filename = f"data\\students{index}.xlsx"
        wb.save(filename)
Exemplo n.º 6
0
sheet1['A2'] = "Groups C and D"

# Unmerge
sheet1.unmerge_cells('A2:A10')

# Freeze Panes
sheet1.freeze_panes = 'A2'  # Freeze Row 1
sheet1.freeze_panes = 'B1'  # Freeze Column A
sheet1.freeze_panes = 'D5'  # Freeze Cols A to C and Rows 1 to 4
sheet1.freeze_panes = 'A1'  # Unfreeze all
sheet1.freeze_panes = None  # Unfreeze all

# Charting
for i in range(1, 11):  # Create Data in Col L
    sheet1['L' + str(i)] = random.randint(1, 11)

theRef = xlct.Reference(sheet1, min_col=12, min_row=1, max_col=12, max_row=10)
theSeries = xlct.Series(theRef, title='Random Values')
theChart = xlct.BarChart()

theChart.title = 'Bar Chart'
theChart.append(theSeries)
sheet1.add_chart(theChart, 'M14')

theChart = xlct.LineChart()
theChart.title = 'Line Chart'
theChart.append(theSeries)
sheet1.add_chart(theChart, 'M30')

workBook.save('sampleChart.xlsx')
Exemplo n.º 7
0
    def draw_pie_plot(self, workbook, grade_weight_data):

        worksheet = workbook.active
        get_table_size = (worksheet.max_row, worksheet.max_column)
        i = 0
        sum_list = []
        k = 0
        for key_parent, value in grade_weight_data.items():
            worksheet.cell(row=2 + i,
                           column=get_table_size[1] + 5,
                           value=key_parent)
            sum = 0
            j = 0
            for key_child, grade_value in value.items():
                worksheet.cell(column=get_table_size[1] + 6 + j,
                               row=2 + i,
                               value=grade_value)
                worksheet.cell(column=get_table_size[1] + 10,
                               row=2 + k,
                               value=key_child)
                worksheet.cell(column=get_table_size[1] + 11,
                               row=2 + k,
                               value=grade_value)
                sum += grade_value
                j += 1
                k += 1
            # calculate the sum of the row and write it into the next column
            sum_list.append(sum)
            i += 1

        last_column = worksheet.max_column + 1
        for pos_sum, sum in enumerate(sum_list):
            worksheet.cell(column=last_column, row=pos_sum + 2, value=sum)

        pie = pyxl_chart.DoughnutChart()
        label = pyxl_chart.Reference(worksheet,
                                     min_col=get_table_size[1] + 10,
                                     min_row=2,
                                     max_row=2 + k - 1)
        data = pyxl_chart.Reference(worksheet,
                                    min_col=get_table_size[1] + 11,
                                    min_row=1,
                                    max_row=2 + k - 1)
        pie.add_data(data, titles_from_data=True)
        pie.set_categories(label)
        pie.title = "Notengewichtung"
        # put the grade_child values as projected pies
        outer_pie_labels = pyxl_chart.Reference(worksheet,
                                                min_row=2,
                                                max_row=2 + i - 1,
                                                min_col=get_table_size[1] + 5)
        outer_pie_data = pyxl_chart.Reference(worksheet,
                                              min_col=last_column,
                                              min_row=1,
                                              max_row=2 + pos_sum)
        series2 = pyxl_chart.Series(outer_pie_data, title_from_data=True)
        pie.series.append(series2)

        worksheet.add_chart(pie, "G7")

        workbook.save(self.name)
Exemplo n.º 8
0
def PH(source1,source2,result):                                                         #定義一個HE的函數
    r=[]                                                                        #紀錄rgb
    g=[]
    b=[]
    r2=[]
    g2=[]
    b2=[]
    wb = Workbook()
    ws = wb.active
    for i in range(256):                                                        #初始化紀錄rgb的list
        r.append(0)
        g.append(0)
        b.append(0)
        r2.append(0)
        g2.append(0)
        b2.append(0)
    image1 = io.imread(source1)                                                 #輸入圖片(image1)
    image2 = io.imread(source2)                                                 #輸入圖片(imager)      
    for col in range(image1.shape[0]):                                          #紀錄轉換前的rgb
        for row in range(image1.shape[1]):  
            r[image1[col,row,0]]+=1
            g[image1[col,row,1]]+=1
            b[image1[col,row,2]]+=1
    for col in range(image2.shape[0]):                                          #紀錄轉換後的rgb
        for row in range(image2.shape[1]):  
            r2[image2[col,row,0]]+=1
            g2[image2[col,row,1]]+=1
            b2[image2[col,row,2]]+=1
    print(result,"-----> finish")
    ws.append([result])
    ws.append([str(image1.shape[0])+"*"+str(image1.shape[1])])    
    ws.append(["","","before","","","after"])
    ws.append(["resolution","value","Red","Green","Blue","Red","Green","Blue"])
    for i in range(256):
        ws.append([str(image1.shape[0]*image1.shape[1]),i,r[i],g[i],b[i],r2[i],g2[i],b2[i]])
    a = chart.Reference(ws, min_row=5, min_col=3, max_row=260, max_col=3)       #劃出直方圖-R1
    s1 = chart.Series(a, title='')
    c1 = chart.BarChart()
    c1.title = 'R1'
    c1.style = 4
    c1.append(s1)
    ws.add_chart(c1,'J5')  
    a = chart.Reference(ws, min_row=5, min_col=4, max_row=260, max_col=4)       #劃出直方圖-G1
    s2 = chart.Series(a, title='')
    c2 = chart.BarChart()
    c2.title = 'G1'
    c2.style = 5
    c2.append(s2)
    ws.add_chart(c2,'J20')  
    a = chart.Reference(ws, min_row=5, min_col=5, max_row=260, max_col=5)       #劃出直方圖-B1
    s3 = chart.Series(a, title='')
    c3 = chart.BarChart()
    c3.title = 'B1'
    c3.append(s3)
    ws.add_chart(c3,'J35')         
    a = chart.Reference(ws, min_row=5, min_col=6, max_row=260, max_col=6)       #劃出直方圖-R2
    s4 = chart.Series(a, title='')
    c4 = chart.BarChart()
    c4.title = 'R2'
    c4.style = 4
    c4.append(s4)
    ws.add_chart(c4,'S5')  
    a = chart.Reference(ws, min_row=5, min_col=7, max_row=260, max_col=7)       #劃出直方圖-G2
    s5 = chart.Series(a, title='')
    c5 = chart.BarChart()
    c5.title = 'G2'
    c5.style = 5
    c5.append(s5)
    ws.add_chart(c5,'S20')  
    a = chart.Reference(ws, min_row=5, min_col=8, max_row=260, max_col=8)       #劃出直方圖-B2
    s6 = chart.Series(a, title='')
    c6 = chart.BarChart()
    c6.title = 'B2'
    c6.append(s6)
    ws.add_chart(c6,'S35')  
    wb.save(result)   
Exemplo n.º 9
0
ws2 = wb['Data Analysis']
for cell in ws1['B:B']:
    ws2.cell(row=cell.row, column=1, value=cell.value)
for cell in ws1['D:D']:
    ws2.cell(row=cell.row, column=2, value=cell.value)
for cell in ws1['I:I']:
    ws2.cell(row=cell.row, column=3, value=cell.value)

sheet = wb[
    'Data Analysis']  # focus on Data Analysis sheet to pull from/write to
for i in range(2, sheet.max_row):
    cell = sheet.cell(row=i, column=1)
    cell.value = str(cell_to_datetime(cell))

ws1['B2'] = '0:00:00'
dates = chart.Reference(ws1, min_col=2, min_row=2, max_row=sheet.max_row)
vBat = chart.Reference(ws2,
                       min_col=2,
                       min_row=1,
                       max_col=2,
                       max_row=sheet.max_row)
qBat = chart.Reference(ws2,
                       min_col=3,
                       min_row=1,
                       max_col=3,
                       max_row=sheet.max_row)
c1 = chart.LineChart()
c1.title = "SLA Discharge - 5.5A: V_BAT and Q_Count"
c1.height = 10  # chart dimensions
c1.width = 20
c1.x_axis.majorTimeUnit = "days"
import openpyxl
from openpyxl import chart

wb = openpyxl.Workbook()
sheet = wb.active
for row in range(1, 11):
    sheet.cell(row, 1).value = row

ref_obj = chart.Reference(sheet, 1, 1, 1, 10)
series_obj = chart.Series(ref_obj, title='First series')
chart_obj = chart.BarChart()
chart_obj.append(series_obj)
chart_obj.y = 50
chart_obj.x = 100
chart_obj.w = 300
chart_obj.h = 200
sheet.add_chart(chart_obj)
wb.save('sampleChart.xlsx')