python


how to hide numbers in pie charts in python ploty


I'm using ploty in python to create pie charts, I added the code I'm using to create the charts. the problem is the percentage numbers doesn't look good.
I couldn't find a way in ploty documentation for disabling the percentage labels.
Is there any way to do it?
thanks
def create_pie_chart(labels, values, pic_name, chart_name=""):
trace = {"labels": labels,
"type": "pie",
"values": values
}
margin = go.Margin(l=0, r=0, b=0, t=0, pad= 1);
layout = go.Layout(margin=margin,showlegend= "False", paper_bgcolor='#33A1C9', font=dict(size=40))
data = go.Data([trace])
fig = go.Figure(data=data, layout=layout)
py.image.save_as(fig, filename=pic_name)
return

Related Links

how to use Numba target='parallel' to check if a 2D array exists in a list which comprises of multiple 2D arrays
python csv fieldnames error
OpenCV : Vehicle axle detection
How to convert HTML to text keeping underline tags (<u></u>) using html2text
How to override settings.py with settings_local.py in Django 1.11
Format the color of a cell in a panda dataframe according to multiple conditions
Bokeh server callback initiated from Flask application
Python Variable Amount Of Input
Turn pandas dataframe list into boolean column
How to handle concatenate with empty matrix
python django translation .po and .mo file not translating the files
jupyter not using version set by pyenv
Generalize print+format for a variable number of inputs
What are the differences in these two codes? [closed]
What is the correct way to change image channel ordering between channels first and channels last?
Python to capture screenshot of big file

Categories

HOME
google-apps-script
caching
payment-gateway
shopify
oauth
performancecounter
ocaml
json-ld
amazon-product-api
appmaker
shader
shipping
dropbox
diagram
nixos
game-physics
lstm
cross-platform
python-unicode
session-timeout
zend-framework-mvc
ios10.3
jni
activepython
shopping-cart
jenkins-job-dsl
kong
cgal
strophe
expand
spreedly
sidr
image-compression
haskell-pipes
fltk
twiki
intellilock
mediawiki-extensions
excel-interop
spring-bean
decompress
httplib2
mercury
master
pdflib
libreadline
spring-ioc
metalsmith
xmp
ninject.web.mvc
pyopengl
ubercart
ibm-data-studio
git-checkout
scrollspy
mdm-zinc
code-first-migrations
google-earth-plugin
ctrlp
start-job
kallithea
temp-tables
facebook-wall
power-law
coin-flipping
lumx
indexing-service
uipickerviewcontroller
android-json-rpc
sqljdbc
cdata
fortran77
android-contextmenu
gdataxml
sequelpro
expression-evaluation
flexicious
ajax.beginform
ets
adobe-contribute
sitemappath
communicationexception

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile