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

Resizing image with Python with locked aspect ratio
Single player 'pong' game
Facebook API non-interactive authorization/login
__getattr__ keeps returning None even when I attempt to return values
python foreign character in csv
How to pack python files and its dependencies in a single executable file?
Printing Variable names and contents as debugging tool; looking for emacs/Python shortcut
Cheking added file to upload python, pylons?
How to refer to the local module in Python?
Is close() necessary when using iterator on a Python file object [duplicate]
Django Admin “Edit Selection” Action?
How to change firefox proxy from webdriver?
Is it possible to hook up a more robust HTML parser to Python mechanize?
Enable Unicode “globally” in Python
Dynamically import a callable given the full module path?
python chaining

Categories

HOME
tensorflow
plsql
shopify
vhdl
google-contacts
safari
iis-7.5
bro
android-viewpager
nixos
qt-installer
nuxt.js
squarespace
ida
dendrogram
uicollectionview
boolean-expression
cython
tweets
google-ima
apple-tv
kitematic
dspic
scalajs-react
non-deterministic
sumo
katharsis
dpi
ivy
expand
recurrence-relation
hashcat
nodeclipse
inkscape
es-shell
zero
silverlight-3.0
cross-entropy
bayesian-networks
median
crop
php-ews
nsjsonserialization
taskmanager
spring-data-hadoop
udev
struts-layout
android-bitmap
cdk
unity3d-editor
emoticons
redux-router
onresume
createobject
slam-algorithm
database-backups
distribute
asynccallback
multinomial
asymptote
getrusage
persistence.xml
datasnap
connection-reset
cpu-cores
pylearn
subversion-edge
code-first-migrations
es2015
tcpreplay
snmp4j
dache
boost-test
coin-flipping
sgml
httpcontext
ksoap2
windows-mobile-6
dynamic-binding
lame
grunt-contrib-compass
zend-lucene
attachevent
osi
flexicious
ubuntu-11.04
nssavepanel
nemerle
newsstand-kit
iphone-sdk-3.2
lazy-c++
dotproject
rd

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