def METHOD_NAME(array, color):
    canvas.delete("all")
    c_height = 380
    c_width = 1000
    x_width = c_width / (len(array) + 1)
    x_left = 15
    spacing = 10
    normalizedArray = [i / max(array) for i in array]
    for i, height in enumerate(normalizedArray):
        # top left
        x0 = i * x_width + x_left + spacing
        y0 = c_height - height * 340
        # bottom right
        x1 = (i + 1) * x_width + x_left
        y1 = c_height
        canvas.create_rectangle(x0, y0, x1, y1, fill=color[i])
        canvas.create_text(x0 + 2, y0, anchor=SW, text=str(array[i]))
    root.update_idletasks()