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 get in real time POST update with django and instagram api?
Binary search tree insert method
Log scale mathplotlib in Python?
Why does python come with so many similar, but subtly different functionality for fulfilling certain elementary computing tasks?
How to have adjacent elements reduced to a single element [closed]
adding row to pandas dataframe from series
Python3.4 PIP install error while building
“Settings” for a function in Python
Python zipfile whole path is in file
put style and background color python excel
Storing 2D list from top to bottom vertically into a string
sklearn Kfold acces single fold instead of for loop
Run-time-patch python module
Multi-level parsing pattern to avoid duplicates
Matplotlib not importing correctly
What's wrong with this least common ancestor algorithm?

Categories

HOME
sql-server-2008
makefile
jdbc
symfony
signalr
redis
vs-team-services
d
zend-framework2
apiconnect
netflix-feign
shipping
google-classroom
oclint
ssr
onsen-ui2
data-synchronization
future
session-timeout
google-openid
zend-framework-mvc
jogl
clover
apply
katharsis
lync-2013
hash-collision
data-conversion
pep8-assembly
crt
skygear
graph-databases
spreedly
ifstream
receipt
service-locator
nodeclipse
image-compression
ssh.net
microdata
lftp
jdbi
bids
onmouseover
rapidweaver
vcf
proof
gist
sgmlreader
pluck
fontconfig
keycode
android-navigationview
c#-interactive
cron-task
clob
sun-codemodel
drf-nested-routers
coldfusion-7
lmfit
fabric-twitter
integral
xjc
harp
guzzle6
proximity
gyroscope-framework
snmp4j
planetary.js
db4o
arangodb-php
wic
gamepad
windows-mobile-6
osx-snow-leopard
asp.net-mvc-scaffolding
jqmobi
localtime
ng-pattern
symphony-cms
vt100
angularjs-timeout
crocodoc
javascriptserializer
continuous-testing
objectbrowser
tcxgrid
ruby-debug
chatroom
getresource
iphone-sdk-3.2
dirty-data
usergroups
interface-design





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