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

QuerySet to JSON with nested objects
Python: How to populate Pandas column that depends on the previous value (previous row)?
Error with the open() function in python [closed]
Fine tuning pretrained model in keras
Getting the derivatives of Legendre polynomials in Python
Most recommended/used library for desiging POM code (Python)
how can I add dictionaries in dictionary
Too many to unpack tuple NLTK Chat
CNTK Python how to pass multiple features into model
Python Pandas GroupBy % calculation
Programmatic copy and paste XML Node in MS Word Document?
What specific requirements does the function passed to scipy.optimize.curve_fit need to fulfill in order to run?
Organizing daily Excel data into xarray dataset
Trouble creating MSI installer with electron
Error getting json using oauthlib python
How to extend instance with no class inheritance [duplicate]

Categories

HOME
json
ember.js
sed
facebook-graph-api
angular2-routing
ubuntu-16.04
agile
formal-verification
tomcat7
zend-framework2
file-io
dropbox
metronic
hosts
xamarin-studio
flann
ctypes
data-analysis
ada
cython
flexboxgrid
nsmenuitem
activepython
google-api-dotnet-client
pygooglechart
dhtmlx-scheduler
roundcube
encase
svnkit
receipt
phpspreadsheet
von-neumann
rider
cgo
web-development-server
microdata
intersystems-ensemble
fastq
context-free-language
archer
fqdn
double-buffering
w3-total-cache
walmart-electrode
goquery
fontconfig
paas
search-box
alter
spring-ioc
mongoose-populate
gradle-eclipse
dbscan
clob
uwp-maps
squirrel
spinlock
function-fitting
eyeql
zuora
fabric-twitter
wif
cpu-cores
gray-code
hiera
chaining
formvalidation-plugin
sortable
docopt
surrogate-key
picat
visual-studio-addins
wic
dllexport
multiple-login
ruboto
argb
shortcuts
qss
template-haskell
sametime
phpsh
dynamic-data
android-4.0
bulbs
web-safe-fonts
blockingqueue
getusermedia
pstree
getstring
windows-phone-7-emulator
separation-of-concerns
galaxy-tab
handwriting
paintcomponent
adsl
gethashcode
email-spec
querypath
iphone-sdk-3.2
dirty-data
usergroups

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App