Template:Team:UC Davis/MutantWidget

From 2011.igem.org

(Difference between revisions)
Line 284: Line 284:
$('#mw_plot').show();
$('#mw_plot').show();
widget_mode = "2D";
widget_mode = "2D";
 +
if(widget_mode == "2D")
 +
{
 +
dataseries = [];
 +
$('#mw_selectmenu td').each(
 +
function(index)
 +
{
 +
if($(this).hasClass("selected"))
 +
{
 +
if(data[index])
 +
{
 +
dataseries.push(data[index]);
 +
}
 +
}
 +
}
 +
);
 +
if(!dataseries[0])
 +
{
 +
dataseries.push([[0,0]]);
 +
}
 +
$.plot($("#mw_plot"), dataseries,
 +
{
 +
xaxis: {max:.014, min:0},
 +
yaxis: {max: 1.0, min:0},
 +
grid: { color:"rgba(225, 225, 225, 1)" },
 +
                                points: {show: true},
 +
                                lines: {show: true}
 +
});
}
}
if($(this).text() == "3D Plot")
if($(this).text() == "3D Plot")

Revision as of 06:30, 26 September 2011