percents = [0, 0.3, 0.4, 0.6, 0.9, 1]
starts = [(p * 2 * pi) for p in percents[:-1]]
ends = [(p * 2 * pi) for p in percents[1:]]
colors = ['red', 'green', 'blue', 'orange', 'yellow']
p = figure(x_range=(-1, 1), y_range=(-1, 1))
p.wedge(x=0, y=0, radius=1, start_angle=starts, end_angle=ends, color=colors)
output_file('pie.html')
show(p)
How do I create a pie chart using Bokeh?