community
Steve L. Nyemba 6 years ago
parent 37f0ea7de7
commit 0043f33c83

@ -109,7 +109,7 @@ class HTMLGraph(Graph):
# dataset["title"] = title
config = {"type":"doughnut","responsive":True}
config["data"] = {"datasets":[dataset],"labels":labels}
config["options"] = {"responsive":True,"legend":{"position":"right","display":False},"title":{"display":True,"text":title},"animation":{"animateScale":True,"animateRotate":True}}
config["options"] = {"responsive":True,"legend":{"position":"left","display":False},"title":{"display":True,"text":title},"animation":{"animateScale":True,"animateRotate":True}}
if 'legend' not in self.args['remove'] :
config['options']['legend']["display"] = True

Loading…
Cancel
Save