Merge branch 'develop' of https://bitbucket.org/sanderroosendaal/rowsandall into develop
This commit is contained in:
@@ -3228,6 +3228,13 @@ def interactive_flex_chart2(id=0,promember=0,
|
|||||||
text_color='black',
|
text_color='black',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
sliderlabel = Label(x=10,y=470,x_units='screen',y_units='screen',
|
||||||
|
text='',
|
||||||
|
background_fill_alpha=0.7,
|
||||||
|
background_fill_color='white',
|
||||||
|
text_color='black',text_font_size='10pt',
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
if (xparam != 'time') and (xparam != 'distance') and (xparam != 'cumdist'):
|
if (xparam != 'time') and (xparam != 'distance') and (xparam != 'cumdist'):
|
||||||
plot.add_layout(x1means)
|
plot.add_layout(x1means)
|
||||||
@@ -3236,6 +3243,7 @@ def interactive_flex_chart2(id=0,promember=0,
|
|||||||
|
|
||||||
plot.add_layout(y1means)
|
plot.add_layout(y1means)
|
||||||
plot.add_layout(annolabel)
|
plot.add_layout(annolabel)
|
||||||
|
plot.add_layout(sliderlabel)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
yaxlabel = axlabels[yparam1]
|
yaxlabel = axlabels[yparam1]
|
||||||
@@ -3381,6 +3389,7 @@ def interactive_flex_chart2(id=0,promember=0,
|
|||||||
y2label=y2label,
|
y2label=y2label,
|
||||||
xlabel=xlabel,
|
xlabel=xlabel,
|
||||||
annolabel=annolabel,
|
annolabel=annolabel,
|
||||||
|
sliderlabel=sliderlabel,
|
||||||
y2means=y2means,
|
y2means=y2means,
|
||||||
), code="""
|
), code="""
|
||||||
var data = source.data
|
var data = source.data
|
||||||
@@ -3412,6 +3421,11 @@ def interactive_flex_chart2(id=0,promember=0,
|
|||||||
var maxdist = maxdist.value
|
var maxdist = maxdist.value
|
||||||
var minwork = minwork.value
|
var minwork = minwork.value
|
||||||
var maxwork = maxwork.value
|
var maxwork = maxwork.value
|
||||||
|
|
||||||
|
sliderlabel.text = 'SPM: '+minspm.toFixed(0)+'-'+maxspm.toFixed(0)
|
||||||
|
sliderlabel.text += ', Dist: '+mindist.toFixed(0)+'-'+maxdist.toFixed(0)
|
||||||
|
sliderlabel.text += ', WpS: '+minwork.toFixed(0)+'-'+maxwork.toFixed(0)
|
||||||
|
|
||||||
var xm = 0
|
var xm = 0
|
||||||
var ym1 = 0
|
var ym1 = 0
|
||||||
var ym2 = 0
|
var ym2 = 0
|
||||||
|
|||||||
@@ -51,8 +51,8 @@
|
|||||||
{{ optionsform.as_table }}
|
{{ optionsform.as_table }}
|
||||||
</table>
|
</table>
|
||||||
<p>
|
<p>
|
||||||
<input name="chartform" class="button green" type="submit"
|
<input name="chartform" type="submit"
|
||||||
value="Submit">
|
value="Update Chart">
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user