Personal tools

Template:PeakCountPerSample: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
Line 47: Line 47:
count_temp=tmp_array[3];
count_temp=tmp_array[3];
}
}
  item = {}
  //item = {}
         item ["EntrezGene"] = id_temp;
         //item ["EntrezGene"] = id_temp;
        item ["Symbol"] = symb_temp;
      // item ["Symbol"] = symb_temp;
        item ["Description"] = desc_temp;
      // item ["Description"] = desc_temp;
categories_xAxisTemp.push(item);
//categories_xAxisTemp.push(item);
categories_xAxis.push('EntrezGene:'+id_temp+'/'+'Symbol:'+symb_temp+'/'+'Description:'+desc_temp);
categories_xAxis.push('EntrezGene:'+id_temp+'/'+'Symbol:'+symb_temp+'/'+'Description:'+desc_temp);


Line 231: Line 231:
var chart = new Highcharts.Chart(options, function(cha){
var chart = new Highcharts.Chart(options, function(cha){


         $("#list").change(function(){
         //$("#list").change(function(){
            changeType(cha, this.value);
          // changeType(cha, this.value);
         });
         //});
          
          
     });
     });
Line 244: Line 244:
  alert(options.xAxis.categories)
  alert(options.xAxis.categories)
     alert(options.series[0].data)
     alert(options.series[0].data)
var sorted = sortByKey(categories_xAxisTemp[0], "Symbol");
//var sorted = sortByKey(categories_xAxisTemp[0], "Symbol");
        alert(sorted);
    //    alert(sorted);
     if(selVal == 1 || selVal == '')
     if(selVal == 1 || selVal == '')
     {
     {
        var sorted = sortByKey(categories_xAxisTemp[0], "Symbol");
        alert(sorted);
         //options.series[0].data= [];
         //options.series[0].data= [];
     }
     }
Line 307: Line 305:


</script>
</script>
<div id="selectbox"><b>Sort by</b>
<!--div id="selectbox"><b>Sort by</b>
<select id="list">
<select id="list">
     <option value="1">peak count</option>
     <option value="1">peak count</option>
     <option value="2">symbol name</option>
     <option value="2">symbol name</option>
</select>
</select>
</div>
</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>
</html>
</html>

Revision as of 11:52, 30 September 2013