Template:PeakCountPerSample: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 196: | Line 196: | ||
num); | num); | ||
} | } | ||
$("#list").change(function(){ | |||
var selVal = $(this).val(); | |||
var chart = $('#container').highcharts(); | |||
var options = chart.options; | |||
alert(options.series[0].data) | |||
alert(selVal) | |||
if(selVal == 1 || selVal == '') | |||
{ | |||
options.series[0].data= [[22,11,32]] | |||
} | |||
else if(selVal == 2) | |||
{ | |||
options.series[1].data= [] | |||
} | |||
else if(selVal == 3) | |||
{ | |||
options.series[2].data= [] | |||
} | |||
else | |||
{ | |||
options.series[0].data= [] | |||
} | |||
//chart.redraw(); | |||
var chart = new Highcharts.Chart(options); | |||
}); | |||
var chart = new Highcharts.Chart(options); | var chart = new Highcharts.Chart(options); | ||
}); | }); | ||
function zoomTo15Points(chart){ | function zoomTo15Points(chart){ | ||
Line 232: | Line 257: | ||
</script> | </script> | ||
</html> | </html> | ||
<div id='selectbox'><b>Sort by</b><SELECT id="list"> | |||
<OPTION VALUE="1">peak count</option> | |||
<OPTION VALUE="2">symbol name</option> | |||
</SELECT></div> | |||
<div id="container" style="min-width:250px; height: auto; margin: 0 auto"></div> | <div id="container" style="min-width:250px; height: auto; margin: 0 auto"></div> | ||
<div id='mytoolTip'></div> | <div id='mytoolTip'></div> |
Revision as of 15:17, 26 September 2013
Sort by<SELECT id="list">
<OPTION VALUE="1">peak count</option> <OPTION VALUE="2">symbol name</option></SELECT>