0

I'm trying to create a pie chart that looks like the below. The data is irrelevant as it's the colours and style I'm after.

enter image description here

I can create pie charts that look more like the below but wanted something that looks much better like the one above.

I'm currently using plotly - is it possible to create this pie chart using this library or would I need something else?

enter image description here

For reference, this is the code I currently have:

pie_chart_1 = px.pie(df_all_tests,
                     values='Total',
                     names='Package',
                     title='Auto tests per package',
                     color='Package',
                     color_discrete_map=c,
                     hole=0.6)

pie_chart_1.update_layout(legend=dict(
    yanchor='top',
    y=0.99,
    xanchor='left',
    x=0.80,
))

pie_chart_1.update_traces(marker=dict(line=dict(color='#FFFFFF', width=0.7)))
lostcoder
  • 55
  • 6
  • 1
    you can read how to use textures in plotly here: https://plotly.com/python/pattern-hatching-texture/ For matplotlib you can refer to this stackoverflow question https://stackoverflow.com/questions/14279344/how-can-i-add-textures-to-my-bars-and-wedges – Sembei Norimaki Feb 14 '23 at 14:02

0 Answers0