Private
Public Access
1
0

multi flex chart

This commit is contained in:
Sander Roosendaal
2017-07-06 13:19:46 +02:00
parent cde3eaf605
commit 7eacc17fd1
6 changed files with 503 additions and 31 deletions

View File

@@ -298,6 +298,7 @@ formaxlabels = axlabels.copy()
formaxlabels.pop('None')
parchoices = list(sorted(formaxlabels.items(), key = lambda x:x[1]))
class BoxPlotChoiceForm(forms.Form):
yparam = forms.ChoiceField(choices=parchoices,initial='spm',
label='Metric')
@@ -313,6 +314,36 @@ class BoxPlotChoiceForm(forms.Form):
includereststrokes = forms.BooleanField(initial=False,
required=False,
label='Include Rest Strokes')
grouplabels = axlabels.copy()
grouplabels['date'] = 'Date'
grouplabels['workoutid'] = 'Workout'
grouplabels.pop('None')
grouplabels.pop('time')
groupchoices = list(sorted(grouplabels.items(), key = lambda x:x[1]))
class MultiFlexChoiceForm(forms.Form):
xparam = forms.ChoiceField(choices=parchoices,initial='spm',
label='X axis')
yparam = forms.ChoiceField(choices=parchoices,initial='power',
label='Y axis')
groupby = forms.ChoiceField(choices=groupchoices,initial='date',
label='Group By')
binsize = forms.FloatField(initial=1,required=False,label = 'Bin Size')
spmmin = forms.FloatField(initial=15,
required=False,label = 'Min SPM')
spmmax = forms.FloatField(initial=55,
required=False,label = 'Max SPM')
workmin = forms.FloatField(initial=0,
required=False,label = 'Min Work per Stroke')
workmax = forms.FloatField(initial=1500,
required=False,label = 'Max Work per Stroke')
ploterrorbars = forms.BooleanField(initial=False,
required=False,
label='Plot Error Bars')
includereststrokes = forms.BooleanField(initial=False,
required=False,
label='Include Rest Strokes')
class ChartParamChoiceForm(forms.Form):
plotchoices = (