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

custome user serializer giving error on is_valid() - django
Dividing a graph into 2 disconnected subgraphs
use boto3 on GAE for Python
boto command for describing an Auto Scaling Group?
get sets of index values, grouped by column year
How to use a tensorflow model extracted from a trained keras model
How to query with many tables
python-shell on linux system indentation error
How come 1 is printed instead of 0?
How to subtracting two hyperspectral image?
Getting an error: list assignment index out of range
Launching dev_appserver.py from windows powershell gives me “too few arguments” error
How do you split all of a certain character in Python [duplicate]
Issues with data types in pandas functions
Firebase Console but there is error tell “Error Generating Download URL”
Python Twitter Streaming Timeline

Categories

HOME
swift
crystal-reports
symfony
semantic-ui
oauth
raspbian
windows-7
jbehave
json-ld
deep-linking
command
ruby-on-rails-3
apache2
xtext
iis-7.5
devstack
vsftpd
pca
eclipse-cdt
criteria
pjsip
informatica-powercenter
pdo
sendkeys
reduction
zoomcharts
factor-analysis
sensu
kitematic
bootstrap-typeahead
scalajs-react
croppic
codelite
web-frontend
pep8-assembly
gpib
edb
m2e
passenger
bigcartel
autocompletetextview
image-compression
visualstudio.testtools
twiki
amd
python-idle
floor
range-v3
appstore-approval
goquery
ticker
butterknife
quintus
paas
search-box
barcode-printing
rsqlite
easing
slam-algorithm
cron-task
children
webkit2
windows-nt
ng2-material
spatial-query
gmsmapview
console-redirect
elastix
asynccallback
approval-tests
plone-3.x
persistence.xml
sem
futuretask
visual-studio-code
google-plus-one
custom-url
c++-actor-framework
left-recursion
libsndfile
mser
adcolony
grunt-contrib-concat
grunt-express
cg
smartystreets
mfmailcomposeviewcontroll
bounds
sqljdbc
logentries
loop-invariant
haskell-platform
ienumerator
nuspec
qsqltablemodel
fotoware
macruby
surf
osx-leopard
visual-c++-2008-express
divx

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