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

Theano tensor type keeps changing and won't let me pass data
append items from shuffled list to a new list
Authenticate and Authorize for appfolder scope access with OneDrive Business Python SDK
Python logging across open source modules
How to transform nested strings in array to separated words?
Data to be read by humans in Python (large data sets)
How can I rename strings of indices?
what is wrong with this DP solution?
Recursion error in Python function
CLion external tools macro
tkinter error when copying contents from clipboard in Python
Create new list (or numpy.array) with a named list (or numpy.array) [duplicate]
Filter by Day of Week in Flask-Admin
How to close GLUT Window when input_raw() is active? Python
Why does CVXOPT give a rank error for this nonlinear network flow optimisation?
Trying to solve randomly generated non-linear simultaneous equations using python

Categories

HOME
cluster-computing
ember.js
batch-processing
erlang
openssl
meshlab
wsdl
bower
jasmine
avro
playframework
concourse
appmaker
webdav
propertygrid
rebol
snap.svg
openwrt
constructor
android-viewpager
flann
public-key-encryption
rapidjson
ida
ssms-2016
zope
chocolatey
zoho
device-detection
ip-camera
jive
sonarqube-msbuild-runner
plsqldeveloper
raphael
esql
autolayout
tcpclient
iup
npm-install
jflex
kong
jackson-dataformat-csv
oracle-xml-db
idl
modulo
precedence
lego
bigcartel
intellilock
socketscan
datalog
encapsulation
xmgrace
shutdown
adler32
autoresize
festival
ebtables
uiprogressview
spoofing
fps
project-online
amazon-kcl
git-rebase
fabric-twitter
ipojo
shift-jis
virus
cloudpebble
libsndfile
candidate-key
dmp
collabnet
docopt
coin-flipping
voldemort
dvcs
arangodb-php
cdata
surveyor-gem
fraud-prevention
arbor.js
icsharpcode
cbcentralmanager
symfony-2.0
windows-phone-7-emulator
applicationcontext
userid
v4l
fileutils
scalaxb
out-of-browser
task-management
filetime
dirty-data
castle-validators

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