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

diffrent views according to if user is logged in or not
User prompted odd or even lines from a text file
error when i try to test connection between python and mysql
Python pxssh execute iptables not working
How to find out what a python package does
Python PyGame KEYDOWN not working
How to show csv file in a grid?
How to for loop list all values into a dataframe? Python
Multidimensional vector classification
How do I install and use gdb inside a docker?
Combing two pandas dataframes, weaving same columns index/title next to one another
Is there an effective way to hide an inline keyboard with python telegram bot?
Overriding django current app in a django template
Python script to query google maps and get the resulting URL [closed]
the difference between multiprocessing.sharedctypes.Value and multiprocessing.Value in python
TensorFlow placeholder dimension - what's the difference?

Categories

HOME
makefile
vue.js
mql4
drupal-7
laravel-5.3
translation
aem
d
google-sheets-api
bibtex
mainframe
vlc
rfc
recyclerview
value
dataframe
httpclient
currency
constructor
rfid
game-physics
viber
nuxt.js
redux-observable
extractor
jquery-scrollify
tampermonkey
opencart2.3
skmaps
cep
owl-api
positioning
getjson
geo
transient
mapguide
jquery-cycle2
sidr
nlb
inkscape
installshield-2012
knockout-3.0
datalog
g1gc
stress-testing
ttcn
matlab-cvst
php-ews
vcf
windows-firewall
web-deployment-project
volume
photography
collapsingtoolbarlayout
gmt
packagemaker
software-product-lines
foxit
dojox.charting
listadapter
shipitjs
spring-repositories
achievements
coldfusion-7
zuora
lmfit
datasnap
textkit
guzzle6
consensus
chaining
moai
left-recursion
google-admin-audit-api
dalekjs
kraken.js
voldemort
reserved-words
real-time-updates
va-list
swrl
windows-update
client-side-scripting
iconv
mailcore
symphony-cms
reporting-tools
gdataxml
zend-framework-modules
mvs
usn
moq-3
galaxy-tab
noir
smooth
hibernate3-maven-plugin
hardware-acceleration
mvvm-foundation
integer-promotion

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