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

How to use do Homographic key matching using AKAZE in opencv
Script execution time on different computers (python 3.5, miniconda)
Loss of precision while converting floats to strings in pandas
PySide application crashes when setting a new widget to QScrollArea
Python - Download File Created From ASPX Form Submission
Find number of weeks in a month
breaking up a list entry in several lists at every /n Python 3
How can I get the default colors in GTK?
Ndb entry .put() not executed?
Tensorflow: NaNs propagating throughout network, even though using sparse_softmax etc
How to do a Python argparse mutually required argument group
scaling websocket game application server
Is there a way to find a character's Unicode code point in Python 2.7?
figtext datetime function matplotlib
environment variable in ubuntu
Cross-platform Python Executables

Categories

HOME
xbox-live
sql-server
ember.js
symfony
tinyos
facebook-graph-api
memory-leaks
wms
jrebel
devstack
bro
jpanel
apiconnect
urlencode
shader
openwrt
aruco
constructor
unity2d
lagom
game-physics
tee
scala-native
reduction
arraylist
off-canvas-menu
jcl
sql-update
cruisecontrol.net
scalaz7
npm-install
helper
system.data.sqlite
jboss5.x
gpib
apache-cloudstack
stocks
google-drive-realtime-api
geomesa
discord.net
alchemy.js
google-account
ttcn
prototypejs
rapidweaver
spell-checking
cgcontext
butterknife
polar-coordinates
project-template
c#-interactive
picasa
vst
bacnet
shipitjs
aerogear
sun-codemodel
xmp
fortran90
multinomial
zuora
built-in
twython
prezto
digits
twitter-rest-api
cpu-cores
rspec3
google-hadoop
cpan
named-ranges
adcolony
collabnet
mov
genetic-programming
proxies
httpcontext
indexing-service
magic-numbers
dvcs
real-time-updates
trimming
nscolor
stagefright
fluidsynth
sametime
attachevent
unions
text-services-framework
jpf
driving-directions
jquery-selectbox
task-management
trampolines
graph-layout
usability-testing

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