|
|
|
@ -104,7 +104,7 @@ class HTMLGraph(Graph):
|
|
|
|
|
|
|
|
|
|
dataset = {"data":X,"backgroundColor":colors,"datalabels":labels}
|
|
|
|
|
# dataset["title"] = title
|
|
|
|
|
config = {"type":"doughnut"}
|
|
|
|
|
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}}
|
|
|
|
|
|
|
|
|
@ -125,7 +125,7 @@ class HTMLGraph(Graph):
|
|
|
|
|
labels = self.args['labels']
|
|
|
|
|
title = self.args['title']
|
|
|
|
|
series = self.args['series']
|
|
|
|
|
config = {"type":"line","data":{"datasets":[],"labels":labels}}
|
|
|
|
|
config = {"type":"line","responsive":True,"data":{"datasets":[],"labels":labels}}
|
|
|
|
|
config["options"] = {"responsive":True,"legend":{"position":"right","display":False},"title":{"display":True,"text":title},"animation":{"animateScale":True,"animateRotate":True}}
|
|
|
|
|
if 'legend' not in self.args['remove'] :
|
|
|
|
|
config['options']['legend']["display"] = True
|
|
|
|
|