|
|
@ -109,7 +109,7 @@ class HTMLGraph(Graph):
|
|
|
|
# dataset["title"] = title
|
|
|
|
# dataset["title"] = title
|
|
|
|
config = {"type":"doughnut","responsive":True}
|
|
|
|
config = {"type":"doughnut","responsive":True}
|
|
|
|
config["data"] = {"datasets":[dataset],"labels":labels}
|
|
|
|
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'] :
|
|
|
|
if 'legend' not in self.args['remove'] :
|
|
|
|
config['options']['legend']["display"] = True
|
|
|
|
config['options']['legend']["display"] = True
|
|
|
|