changed interactive chart
now shows SPM instead of HR
This commit is contained in:
@@ -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='',
|
||||
|
||||
Reference in New Issue
Block a user