Private
Public Access
1
0

changed interactive chart

now shows SPM instead of HR
This commit is contained in:
Sander Roosendaal
2018-05-10 12:57:09 +02:00
parent 82fe856540
commit 34135c7e9b

View File

@@ -2199,15 +2199,17 @@ def interactive_chart(id=0,promember=0):
hover.mode = 'mouse'
plot.extra_y_ranges["hrax"] = Range1d(start=100,end=200)
plot.line('time','hr',source=source,color="red",
y_range_name="hrax", legend="Heart Rate")
plot.add_layout(LinearAxis(y_range_name="hrax",axis_label="HR"),'right')
plot.extra_y_ranges["spmax"] = Range1d(start=10,end=45)
plot.line('time','spm',source=source,color="red",
y_range_name="spmax", legend="Stroke Rate")
plot.add_layout(LinearAxis(y_range_name="spmax",axis_label="SPM"),'right')
plot.legend.location = "bottom_right"
script, div = components(plot)
print div,"aap"
return [script,div]
def interactive_multiflex(datadf,xparam,yparam,groupby,extratitle='',