adding time plot
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user