Private
Public Access
1
0

adding time plot

This commit is contained in:
Sander Roosendaal
2022-07-20 07:10:47 +02:00
parent 4758be79c0
commit 973f863b92
2 changed files with 34 additions and 0 deletions

View File

@@ -2950,6 +2950,26 @@ def instroke_chart_interactive(request, id=0):
spm_min,
spm_max)
# change to range spm_min to spm_max
vals, units, typ = rowdata.updateinterval_metric(
' Cadence (stokes/min)', spm_min, mode='larger',
debug=False, smoothwindow=2.,)
intervalstats = rowdata.allstats()
itime, idist, itype = rowdata.intervalstats_values()
intervaldata = {
'itime': itime,
'idist': idist,
'itype': itype,
'selector': '',
'normp': 0,
'normv': 0,
}
ds, dd = interactive_chart(encoder.decode_hex(
id), promember=1, intervaldata=intervaldata)
breadcrumbs = [
{
@@ -2971,6 +2991,8 @@ def instroke_chart_interactive(request, id=0):
response = json.dumps({
'script': script,
'div': div,
'ds': ds,
'dd': dd,
})
return HttpResponse(response, content_type='application/json')
@@ -2989,6 +3011,8 @@ def instroke_chart_interactive(request, id=0):
'the_div': div,
'spm_min': spm_min,
'spm_max': spm_max,
'ds': ds,
'dd': dd,
})