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

Can I make this work without global variables?
python regex - no match in script, although it should
argparse module: require arg1 or (arg2 and arg3)
python - Can't seem to call a parent class's method from the child
Populate XML values from HTML Web Form Using Python
Gunicorn + Flask-Restful : High CPU usage while starting
Pymongo Regex match with list
Python 2.7 The 'packaging' package is required; normally this is bundled with this package
EOF Error Pickle
Graphviz: write result to file
Debug behavior differ from normal execution in python
nodejs unable to pass more than one arguments to the script with spawn
Setting indents while writing to an xml. Python.
Python Numpy's argsort duplicate issue [duplicate]
How to write Python script like shell script for UNIX?
Why does pythons slice indexing give counter intuitive results? [duplicate]

Categories

HOME
makefile
laravel-5
itext
ipython
label
h2
java-home
file-io
eval
constructor
abcpdf
dlib
nuxt.js
symfony-forms
phoenix
phpbb
kadanes-algorithm
ng2-dragula
flexboxgrid
restfb
tflearn
jflex
data-cleansing
rhmap
pptp
cgal
data-conversion
configure
twitter-bootstrap-2
outsystems
gettext
openshift-enterprise
s3cmd
parent
twiki
ddms
nsexception
productivity
3scale
rapidweaver
xmgrace
spell-checking
udev
ruby-on-rails-2
jcreator
unity3d-editor
vici
wcf-ria-services
freetype2
nofollow
soda
gemini
project-online
asp.net-mvc-partialview
usb-drive
license-key
acm
enyo
app.xaml
qbfc
bridge
jazz
adodb
tilestache
symfony-2.6
yahoo-boss-api
korma
indexing-service
factors
xenocode
wic
cling
bigint
javascriptmvc
vmware-server
apache2.2
resgen
device-emulation
cbcentralmanager
xgettext
getusermedia
userid
ajax.beginform
nsindexpath
webkit-transform
paintcomponent
ets
search-path
nagle
gwt-2.2-celltable
linfu





Mobile Apps Dev
Database Users
javascript
java
csharp
php
android


MS Developer
developer works
python
ios
c
html
jquery


RDBMS discuss