adding critical stroke rate chart
This commit is contained in:
@@ -124,13 +124,13 @@
|
||||
<script>
|
||||
// script for chart options form
|
||||
$(function() {
|
||||
|
||||
|
||||
// Get the form fields and hidden div
|
||||
var functionfield = $("#id_function");
|
||||
var plotfield = $("#id_plotfield").parent().parent();
|
||||
var x_param = $("#id_xparam").parent().parent();
|
||||
var y_param = $("#id_yparam").parent().parent();
|
||||
|
||||
|
||||
var groupby = $("#id_groupby").parent().parent();
|
||||
var binsize = $("#id_binsize").parent().parent();
|
||||
var errorbars = $("#id_ploterrorbars").parent().parent();
|
||||
@@ -139,17 +139,18 @@
|
||||
var spmmax = $("#id_spmmax").parent().parent();
|
||||
var workmin = $("#id_workmin").parent().parent();
|
||||
var workmax = $("#id_workmax").parent().parent();
|
||||
|
||||
|
||||
var xaxis = $("#id_xaxis").parent().parent();
|
||||
var yaxis1 = $("#id_yaxis1").parent().parent();
|
||||
var yaxis2 = $("#id_yaxis2").parent().parent();
|
||||
var plottype = $("#id_plottype").parent().parent();
|
||||
|
||||
var reststrokes = $("#id_includereststrokes").parent().parent();
|
||||
var trendline = $("#id_trendline").parent().parent();
|
||||
var piece = $("#id_piece").parent().parent();
|
||||
var cpfit = $("#id_cpfit").parent().parent();
|
||||
var cpoverlay = $("#id_cpoverlay").parent().parent();
|
||||
|
||||
var reststrokes = $("#id_includereststrokes").parent().parent();
|
||||
var trendline = $("#id_trendline").parent().parent();
|
||||
var piece = $("#id_piece").parent().parent();
|
||||
var cpfit = $("#id_cpfit").parent().parent();
|
||||
var crfit = $("#id_crfit").parent().parent();
|
||||
var cpoverlay = $("#id_cpoverlay").parent().parent();
|
||||
|
||||
|
||||
// Hide the fields.
|
||||
@@ -166,15 +167,15 @@
|
||||
yaxis1.hide();
|
||||
yaxis2.hide();
|
||||
plottype.hide();
|
||||
// reststrokes.hide();
|
||||
workmin.hide();
|
||||
workmax.hide();
|
||||
spmmin.hide();
|
||||
spmmax.hide();
|
||||
cpfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
trendline.hide();
|
||||
// reststrokes.hide();
|
||||
workmin.hide();
|
||||
workmax.hide();
|
||||
spmmin.hide();
|
||||
spmmax.hide();
|
||||
cpfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
trendline.hide();
|
||||
|
||||
if (functionfield.val() == 'boxplot') {
|
||||
plotfield.show();
|
||||
@@ -214,11 +215,16 @@
|
||||
reststrokes.show();
|
||||
}
|
||||
|
||||
if (functionfield.val() == 'cp') {
|
||||
cpfit.show();
|
||||
piece.show();
|
||||
cpoverlay.show();
|
||||
}
|
||||
if (functionfield.val() == 'cp') {
|
||||
cpfit.show();
|
||||
piece.show();
|
||||
cpoverlay.show();
|
||||
}
|
||||
|
||||
if (functionfield.val() == 'cr') {
|
||||
crfit.show();
|
||||
piece.show();
|
||||
}
|
||||
|
||||
|
||||
// Setup an event listener for when the state of the
|
||||
@@ -241,15 +247,16 @@
|
||||
palette.hide();
|
||||
binsize.hide();
|
||||
errorbars.hide();
|
||||
trendline.hide();
|
||||
trendline.hide();
|
||||
xaxis.hide();
|
||||
yaxis1.hide();
|
||||
yaxis2.hide();
|
||||
plottype.hide();
|
||||
reststrokes.show();
|
||||
cpfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
reststrokes.show();
|
||||
cpfit.hide();
|
||||
crfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
}
|
||||
else if (Value=='histo') {
|
||||
plotfield.show();
|
||||
@@ -262,16 +269,17 @@
|
||||
groupby.hide();
|
||||
palette.hide();
|
||||
binsize.hide();
|
||||
trendline.hide();
|
||||
trendline.hide();
|
||||
errorbars.hide();
|
||||
xaxis.hide();
|
||||
yaxis1.hide();
|
||||
yaxis2.hide();
|
||||
plottype.hide();
|
||||
reststrokes.show();
|
||||
cpfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
reststrokes.show();
|
||||
cpfit.hide();
|
||||
crfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
|
||||
}
|
||||
else if (Value=='trendflex') {
|
||||
@@ -284,17 +292,18 @@
|
||||
spmmin.show();
|
||||
spmmax.show();
|
||||
workmin.show();
|
||||
trendline.hide();
|
||||
trendline.hide();
|
||||
workmax.show();
|
||||
plotfield.hide();
|
||||
xaxis.hide();
|
||||
yaxis1.hide();
|
||||
yaxis2.hide();
|
||||
plottype.hide();
|
||||
reststrokes.show();
|
||||
cpfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
reststrokes.show();
|
||||
cpfit.hide();
|
||||
crfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
|
||||
}
|
||||
else if (Value=='flexall') {
|
||||
@@ -305,7 +314,7 @@
|
||||
y_param.hide();
|
||||
groupby.hide();
|
||||
spmmin.hide();
|
||||
trendline.show();
|
||||
trendline.show();
|
||||
spmmax.hide();
|
||||
workmin.hide();
|
||||
workmax.hide();
|
||||
@@ -314,10 +323,11 @@
|
||||
binsize.hide();
|
||||
plottype.hide();
|
||||
errorbars.hide();
|
||||
reststrokes.show();
|
||||
cpfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
reststrokes.show();
|
||||
cpfit.hide();
|
||||
crfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
}
|
||||
else if (Value=='stats') {
|
||||
xaxis.hide();
|
||||
@@ -331,11 +341,12 @@
|
||||
binsize.hide();
|
||||
errorbars.hide();
|
||||
plottype.hide();
|
||||
trendline.hide();
|
||||
reststrokes.show();
|
||||
cpfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
trendline.hide();
|
||||
reststrokes.show();
|
||||
cpfit.hide();
|
||||
crfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.hide();
|
||||
}
|
||||
else if (Value=='compare') {
|
||||
xaxis.show();
|
||||
@@ -350,18 +361,19 @@
|
||||
workmax.hide();
|
||||
plotfield.hide();
|
||||
palette.hide();
|
||||
trendline.hide();
|
||||
trendline.hide();
|
||||
binsize.hide();
|
||||
plottype.show();
|
||||
errorbars.hide();
|
||||
piece.hide();
|
||||
cpfit.hide();
|
||||
cpoverlay.hide();
|
||||
reststrokes.show();
|
||||
piece.hide();
|
||||
cpfit.hide();
|
||||
crfit.hide();
|
||||
cpoverlay.hide();
|
||||
reststrokes.show();
|
||||
|
||||
|
||||
}
|
||||
else if (Value=='cp') {
|
||||
else if (Value=='cp') {
|
||||
plotfield.hide();
|
||||
spmmin.hide();
|
||||
spmmax.hide();
|
||||
@@ -369,7 +381,7 @@
|
||||
workmax.hide();
|
||||
x_param.hide();
|
||||
y_param.hide();
|
||||
trendline.hide();
|
||||
trendline.hide();
|
||||
groupby.hide();
|
||||
palette.hide();
|
||||
binsize.hide();
|
||||
@@ -378,10 +390,34 @@
|
||||
yaxis1.hide();
|
||||
yaxis2.hide();
|
||||
plottype.hide();
|
||||
reststrokes.hide();
|
||||
cpfit.show();
|
||||
cpoverlay.hide();
|
||||
piece.show();
|
||||
reststrokes.hide();
|
||||
cpfit.show();
|
||||
crfit.hide();
|
||||
cpoverlay.hide();
|
||||
piece.show();
|
||||
}
|
||||
else if (Value=='cr') {
|
||||
plotfield.hide();
|
||||
spmmin.hide();
|
||||
spmmax.hide();
|
||||
workmin.hide();
|
||||
workmax.hide();
|
||||
x_param.hide();
|
||||
y_param.hide();
|
||||
trendline.hide();
|
||||
groupby.hide();
|
||||
palette.hide();
|
||||
binsize.hide();
|
||||
errorbars.hide();
|
||||
xaxis.hide();
|
||||
yaxis1.hide();
|
||||
yaxis2.hide();
|
||||
plottype.hide();
|
||||
reststrokes.hide();
|
||||
cpfit.hide();
|
||||
crfit.show();
|
||||
cpoverlay.hide();
|
||||
piece.show();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user